Re: Version 2.1.70 ms-dos fs strange.
Bill Hawes (whawes@star.net)
Sat, 06 Dec 1997 10:35:20 -0500
Richard B. Johnson wrote:
> # ls /tmp/*.bak
> ls: /tmp/*.bak: No such file or directory
> # ls /dos/drive_C/*.bak
> ls: /dos/drive_C/*.bak: Invalid argument
> # exit
> exit
>
> Script done on Fri Dec 5 19:34:44 1997
>
> Synopsis:
> `ls` for a nonexistant file under ext2 results in ENOENT.
> `ls` for a nonexistant file under msdos results in EINVAL.
> NotGood(tm)
Apparently what happens is that when no files match the pattern *.bak,
ls tries to stat the name '*.bak', which is an invalid filename under
DOS.
Doing an ls on 'fooble' or other nonexistent names returns "no such
file".
Regards,
Bill