Re: [uClinux-dev] msh: detect if a file exists

2008-06-10 Thread Michael Schnell
You meant -e, and that does work with msh. Thanks a lot, Jamie. That was the trick. (In the bash documentation -a and -e are equivalent, so I stopped reading when I found -a.) How did you know this ? Do you have an msh documentation ? -Michael

Re: [uClinux-dev] msh: detect if a file exists

2008-06-10 Thread Jamie Lokier
Michael Schnell wrote: You meant -e, and that does work with msh. Thanks a lot, Jamie. That was the trick. (In the bash documentation -a and -e are equivalent, so I stopped reading when I found -a.) How did you know this ? Do you have an msh documentation ? I did man sh, man test or

Re: [uClinux-dev] msh: detect if a file exists

2008-06-10 Thread Michael Schnell
I did man sh, man test or man [ - all of them (on Ubuntu) have -e but not -a for file testing. :-) I did man bash on Suse 10.3 There's no msh documentation as far as I know, but it's basically a standardish old-style Bourne shell with some bugs, and notably no user-defined functions (which

Re: [uClinux-dev] msh: detect if a file exists

2008-06-10 Thread Erwin Authried
Am Dienstag, den 10.06.2008, 12:25 +0100 schrieb Jamie Lokier: There's no msh documentation as far as I know, but it's basically a standardish old-style Bourne shell with some bugs, and notably no user-defined functions (which are a modern feature anyway). So most sh documentation applies

[uClinux-dev] msh: detect if a file exists

2008-06-09 Thread Michael Schnell
Hi Experts, I don't find any documentation to msh (other than that it is supposed to work similar to bash) :) Does anybody know how I can detect if a file exists with msh ? if [ -a xy ]; then . does not seem to work. What am I doing wrong ? Thanks, -Michael

Re: [uClinux-dev] msh: detect if a file exists

2008-06-09 Thread Jamie Lokier
Michael Schnell wrote: if [ -a xy ]; then . does not seem to work. What am I doing wrong ? You meant -e, and that does work with msh. -- Jamie ___ uClinux-dev mailing list uClinux-dev@uclinux.org