Problem removing a file
jeffj at pedsga.UUCP
jeffj at pedsga.UUCP
Tue Jan 31 09:24:53 AEST 1989
In article <695 at flatline.UUCP> erict at flatline.UUCP (j eric townsend) writes:
|>Ok, I've really done it now. I've created, in my home directory,
|>a file by the name of:
|>-ef
|>rm: illegal option -- e
|>usage: rm [-fir] file ...
The recent versions of rm (and all programs that take options)
use getopt(3) to parse the argument line.
Both the SVID and the programmer's manual mention that `--' is used
to terminate options to allow arguments beginning with `-', so
rm -- -ef
should work. If my suggestion was taken, the SVR4.0 manual should
have this as an example in the rm(1) man page.
More information about the Comp.sys.att
mailing list