[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: handling of test == by BASH's POSIX mode
From: |
Andreas Schwab |
Subject: |
Re: handling of test == by BASH's POSIX mode |
Date: |
Sun, 27 May 2012 13:31:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) |
Jon Seymour <jon.seymour@gmail.com> writes:
> As it stands, I can't use bash's POSIX mode to verify the validity or
> otherwise of a POSIX script because bash won't report these kinds of
> errors - even when running in POSIX mode.
You can't do that anyway: POSIX mode does not disable proper extensions
to POSIX, only those that conflict with POSIX. Specifically, in the
case of the test utility, POSIX makes the behaviour unspecified when a
three argument invocation does not match the POSIX-defined binary
operators.
> There is an --enable-strict-posix (?) configuration option. Will this do
> what I expect?
That just switches the default for POSIX mode.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Geir Hauge, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/27
- Re: handling of test == by BASH's POSIX mode,
Andreas Schwab <=
- Re: handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Dan Douglas, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/27
- Re: handling of test == by BASH's POSIX mode, Eric Blake, 2012/05/28
- Re: handling of test == by BASH's POSIX mode, Jon Seymour, 2012/05/28
Re: handling of test == by BASH's POSIX mode, Eric Blake, 2012/05/28