GNU bug report logs - #23090
true and false not POSIX

Previous Next

Package: coreutils;

Reported by: Ruediger Meier <sweet_f_a <at> gmx.de>

Date: Tue, 22 Mar 2016 12:44:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ruediger Meier <sweet_f_a <at> gmx.de>, 23090 <at> debbugs.gnu.org
Cc: stephane.chazelas <at> gmail.com
Subject: bug#23090: true and false not POSIX
Date: Tue, 22 Mar 2016 12:31:50 -0700
On 03/22/2016 09:39 AM, Ruediger Meier wrote:
> You could also let true behave like rm if POSIXLY_CORRECT is not set or
> if more than zero option given.
This misunderstands the intent of POSIXLY_CORRECT. Setting 
POSIXLY_CORRECT does not mean "remove all extensions not specified by 
POSIX". It merely means "conform to POSIX even where the default is to 
not conform".

It might be helpful to have some other environment variable that meant 
"try to be strict about supporting only behavior required by POSIX", as 
one could use that to develop shell scripts that were more portable. 
However, that would be a lot of work to implement, and it's not clear 
it's worth the hassle to develop, maintain, and document. Plus, POSIX 
does not always specify behavior, so portability wouldn't be guaranteed 
by this.




This bug report was last modified 9 years and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.