[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: false --help vs. false --version
From: |
Jim Meyering |
Subject: |
Re: false --help vs. false --version |
Date: |
Thu, 03 Apr 2003 15:10:54 +0200 |
Paul Eggert <address@hidden> wrote:
> I love poking sticks into hornets' nests, so I can't resist mentioning
> that coreutils "true" sometimes returns false:
:-)
> $ ./true --version >&-
> ./true: write error: Bad file number
> $ echo $?
> 1
>
> This is not a POSIX conformance issue, since "true" always returns
> true if POSIXLY_CORRECT is set; still, perhaps true's exit-status
> behavior should either be documented (if it's what's desired) or
> changed (if not).
Thanks for finding that.
I'm inclined to leave the behavior as it is and document that
`true --version' can fail.