OH, DUH! Well that is cool and the same thing as doing it with the cat command but you still can not edit mount.sh on the phone in vi, because there is no way to save the changes until someone figures out a way to get back down to the command line in vi.
If I have an empty file in vi and hit "alt:" I can get to the command line and put in the commands, but once I have modified the file, it will not work.
Anyway I just tested your idea and it works fine. I have done a crash course in linux the past month and forgot about >> appending lines in a file. Cool.
Now that I think about it, once I moved the scripts to my sdcard, I changed the extension to .txt then edited it with word.
I have experimented! I just wrote a little script in the emulator on the phone that has a few echo commands in it just to see if I can execute the script after I get out of vi.
I do my typing, then hit the ok button then the c key (which is a control c), that moves the cursor to the top of the file. Then i type in ok v and I get a message on the command line that says "^v is not implemented"
Then I hit the "alt :which puts the : on the command line (gets rid of error message) and type my "wq" command which wirtes the file and quits vi.
Then I sh filename and it frigging works. COOOL! I vi'ed the file again and edited the echo statement, repeated the get out of here stuff and ran the script and it worked with the correction.
I found out that OK z exits vi but will not save what you did.:icon_ banana:dancedroid
Probably not the right way to do it, but IT WORKS. HEE HEE!