Re: [RFA] Add new cmd line parameter "--pid" for attach.

Richard Earnshaw
2002-01-11T10:19:54Z

> Andrew Cagney writes:
> > > "To remove a file called `-f' in the current directory, you could type
> > > either rm -- -f or rm ./-f "
> >
> >
> > ``--''? Since when was ``--'' an option to rm? You'll be telling me
> > UNIX comes with colour LS next .... :-^
> >
>
> yes, true, it is in the man page for rm on RH7.1!
>
> > Yes. The use of ./1234 should be documented. So should (in the NEWS
> > file) the quiet switch of how <pid> vs <core> is decided.
> >
>
> Michael added this to the doco, yes.
>
> Elena
>
>
> > Andrew

Solaris uses a single '-' to mark the end of the options list:

NOTES
A - permits the user to mark explicitly the end of any com-
mand line options, allowing rm to recognize file arguments
that begin with a -. As an aid to BSD migration, rm will
accept - as a synonym for -. This migration aid may disap-
pear in a future release. If a - and a - both appear on the
same command line, the second will be interpreted as a file.