Quote:
Originally Posted by Spiffy
Its a Unicode issue, right? Whatever text editor you use has to be able to save that way.
|
Actually, I had Notepad++ set for UNIX and ANSI, so the text was not in a Unicode like UTF-8 or Windows-1252. ANSI is basically just ASCII character codes, but what I think caused all my problems in getting the script to work was the line endings. Windows text ends all lines with a Carriage Return Line Feed sequence, while Linux/UNIX text ends all lines with just a Line Feed. I believe Mac text ends all lines with just a Carriage Return, but I am not really familiar with Mac text formating. In any case, if the line ending is wrong then the shell parser just gets confused and the command ends up not being executed. Of course, on the PocketPRO you can not see when the shell emits an error message, so I had to try for quite a while to get that simple script to work. But now it works great for me, and now I can easily clear the cache if it gets corrupted.