In regard to: Re: [Imap-uw] mailutil patch: recognize -- switch, Mark...:

Hi Elliot -

Thank you very much for this suggested patch.

For my information, is the "--" any sort of convention,

It's actually specified by the XCU portion of the Single Unix
Specification (SUS).  I'm not sure when it was mandated, but it's
definitely part of SUSv3 (UNIX98).  Any command that takes command line
arguments and is SUS-compliant is required to take `--' to mean "end of
option arguments, hereafter are non-option arguments".

If you're willing to register with the Open Group, you can download the
entire SUS

        http://www.unix.org/single_unix_specification/


or was it ad-hoc on your part?  I find it difficult to believe that this
is the first time that this has ever come up, and I'm hoping that you
can point to other applications that do this as well.

Every command that takes command line arguments on most modern UNIX
systems should do this, e.g.

$cd /tmp/foo
$touch -t foo bar
touch: bad conversion
$touch -- -t foo bar
$ls -t -t bar foo
$ls -- -t
-t
$rm -t
rm: illegal option -- t
usage: rm [-efirR] file ...
$rm -- -t


This is with the vendor commands on Tru64 5.1b, which is UNIX98 compliant.
The same would be true for recent Solaris and other commercial UNIX
platforms.

Tim
--
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to