Quoting from Shell Utilities/2.6.4 Arithmetic Expansion of SuSv3:
If the shell variable x contains a value that forms a valid integer
constant, then the arithmetic expansions $((x)) and $(($x)) shall
return the same value.
I cannot seem to find any reasonable way to parse this other than that
On Tue, Aug 29, 2006 at 01:40:38PM +0200, David Weinehall wrote:
Quoting from Shell Utilities/2.6.4 Arithmetic Expansion of SuSv3:
If the shell variable x contains a value that forms a valid integer
constant, then the arithmetic expansions $((x)) and $(($x)) shall
return the same value.
On Tue, Aug 29, 2006 at 01:57:27PM +0100, Julian Gilbey wrote:
On Tue, Aug 29, 2006 at 01:40:38PM +0200, David Weinehall wrote:
Quoting from Shell Utilities/2.6.4 Arithmetic Expansion of SuSv3:
If the shell variable x contains a value that forms a valid integer
constant, then the
On Tue, Aug 29, 2006 at 07:00:03PM +0200, David Weinehall wrote:
In other words, SuSv3 is POSIX.1 + POSIX.2 + errata.
Thanks for the clarification.
However, dash does not support $((x)) either, so I'd say that dash is
buggy in any case, since it can be argued that SuSv3 is the clarified
4 matches
Mail list logo