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." > > I cannot seem to find any reasonable way to parse this other than that > $((x+1)) should be treated in the same way that $(($x+1)) would be.
Maybe, maybe not. But this is not the behaviour of dash. Maybe SuSv3 differs from POSIX in this respect, or maybe this is a bug in dash? Also, note that "x+1" is not a shell variable, so $((x+1)) may not be treated in the same way as the special case $((x)). Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

