Worm/Passwords
Patrick Barron
pdb at sei.cmu.edu
Fri Nov 18 04:58:33 AEST 1988
In article <466 at yarra.oz.au> cm at yarra.oz.au (Charles Meo) writes:
>Why not put something in rm to check for the '*' token by itself and say
>something like:
>
>Are you sure y/n?
The 'rm' command never sees the '*', since wildcard expansion is done by
the shell. For instance, if your current directory contains "this_file",
"that_file", and "other_file", and you type "rm *", what the 'rm' command
actually sees is "rm other_file that_file this_file". That is, it doesn't
know a wildcard was used.
--Pat.
More information about the Comp.unix.wizards
mailing list