bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documention error for true, false


From: Keith Thompson
Subject: Documention error for true, false
Date: Wed, 29 Aug 2001 19:37:10 -0700
User-agent: Mutt/1.2.5i

I'm using sh-utils 2.0 under SunOS 5.7.

The documentation for the "false" command (excerpt from doc/sh-utils.texi)
says:

] @code{false} ignores @emph{all} command line arguments, even @samp{--help}
] and @samp{--version}, since to do otherwise would change expected
] behavior that some programmers may be relying on.

Likewise, the documentation for "true" says:

] @code{true} ignores @emph{all} command line arguments, even @samp{--help}
] and @samp{--version}, since to do otherwise would change expected
] behavior that some programmers may be relying on.

In fact, this is true only if the environment variable POSIXLY_CORRECT
is set.

Also, unlike most other GNU commands, true and false recognize --help
or --version *only* if it's the only argument, and only if it's spelled
out in full.  I won't quite argue that this is a bug, but I suggest it
should be documented.

-- 
Keith Thompson (The_Other_Keith) address@hidden  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Cxiuj via bazo apartenas ni.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]