When is a file name not a file name?
Stephen J. Friedl
friedl at vsi.COM
Sun Jul 23 03:28:14 AEST 1989
[How do I remove a file called "-l"]
Somebody suggests:
>
> rm ./-l or, rm -i *
In article <20314 at adm.BRL.MIL>, packman%TAMUNIX.BITNET at tamvm1.tamu.edu (Packman) writes:
>
> The first one will work ok, but the second one will not because the
> shell expands the "*" to "-l" and then rm thinks it's an option.
Imagine what happens if you ran "rm -i *" and the file you really
wanted to remove was "-f"?
Steve
--
Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442
3B2-kind-of-guy / {attmail uunet}!vsi!{bang!}friedl / friedl at vsi.com
"Why can't I do pointer multiplication in C?" - Blair Houghton
More information about the Comp.unix.questions
mailing list