command line options
Richard A. O'Keefe
ok at quintus.UUCP
Tue Apr 12 16:04:07 AEST 1988
To be perfectly fair, it is worth pointing out that the "-?" hack can be
exploited in a way that is immune to meta-character vagaries. Instead of
-? or -*, use -/ (/ being the unshifted ? on most keyboards). / is not
going to be a meta-character in any sane UNIX shell, and it isn't going
to be an option letter in any reasonable program either. Example:
% date -/
usage: date [-u] [+format] [mmddhhmm[yy]] [-a sss.fff]
It's still going to return an error code rather than being regarded as a
normal use of the program, but that presumably won't bother most people.
More information about the Comp.unix.wizards
mailing list