[getopt-sig] ANNOUNCE: Optik 1.3 released
A.T. Hofkamp
a.t.hofkamp@tue.nl
Mon, 15 Apr 2002 14:00:42 +0200 (CEST)
On Sat, 13 Apr 2002, Greg Ward wrote:
> > are "greedy" (they try to take an argument first), or "non-greedy" (try to
> > match options first). But what if you then want to pass an option argument
> > which begins with a hyphen, like a file named "-dash.txt"? Doesn't work.
A known problem with rm, i.e. 'rm -myfile' will not be accepted by the standard
rm (maybe 'rm -- -myfile' would work on GNU-rm).
Standard trick around it is 'rm ./-myfile'.
The core of the problem is of course that a user cannot get around the
hard-coded meaning of '-', but I wouldn't know how to get around that (unless
we introduce a work-around with a new environment variable 'OPTIONCHAR').
I don't think we want to change that, these limitations are more or less
intrinsic in Unix. In the same way as / is hard-coded as directory seperator.
Albert
--
Unlike popular believe, the .doc format is not an open publically available format.