[uClinux-dev] msh: detect if a file exists
Erwin Authried
eauth at softsys.co.at
Mon Jun 9 12:38:55 EDT 2008
Hi Michael,
I have no board to try on my desk right now, but something like
if test -e xy
then
....
....
fi
will work for sure.
Regards,
Erwin
Am Montag, den 09.06.2008, 18:15 +0200 schrieb 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
More information about the uClinux-dev
mailing list