Linux-kernel mailing list archive 1997-49,: Re: Version 2.1.70 ms-dos fs strange.

# Re: Version 2.1.70 ms-dos fs strange.

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Sat, 6 Dec 1997 23:20:11 +0100 (MET)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Rogier Wolff: "Re: Mea Culpa"
- Previous message: Peter J. Braam: "[Patch] coda 2.1.71"
- Next in thread: Richard B. Johnson: "Re: Version 2.1.70 ms-dos fs strange."
- Reply: Richard B. Johnson: "Re: Version 2.1.70 ms-dos fs strange."

Bill Hawes wrote:
>
> 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.

Very minor nitpick: Some shells pass the "pattern" on litterally when
it doesn't match anything. This allows you to do

find . -name *.bak

without the "\" that I'm used to. This gives good results with no
"bak" files in the current dir, an error message with 2 or more "bak
files" and horribly bad results if there happens to be just one.

Some shell writers like this, others loathe it. Religious wars and
such.

mdir a:*.txt

Regards,

Roger.

    --
    ** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ **
    Florida -- A 39 year old construction worker woke up this morning when a
    109-car freight train drove over him. According to the police the man was
    drunk. The man himself claims he slipped while walking the dog. 080897

- Next message: Rogier Wolff: "Re: Mea Culpa"
- Previous message: Peter J. Braam: "[Patch] coda 2.1.71"
- Next in thread: Richard B. Johnson: "Re: Version 2.1.70 ms-dos fs strange."
- Reply: Richard B. Johnson: "Re: Version 2.1.70 ms-dos fs strange."