On Thu, Mar 20, 2008 at 02:35:09PM -0600, Raphael Geissert wrote: > $ dash -c 'a=10; echo $((a*2))' > 20 > > BUT: > $ dash -c 'a=10; echo $((a++))' > dash: arithmetic expression: expecting primary: "a++" > > Wartan Hachaturow wrote a patch for FreeBSD's ash some time ago[1] > > [1]http://www.freebsd.org/cgi/query-pr.cgi?pr=standards/52972
Hi Raphael, this is a separate issue. While this bug talks about $(($x)) and $((x)), you're looking for the ++ operand. $ dash -c 'x=1; echo $(($x++))' dash: arithmetic expression: expecting primary: "1++" doesn't work either. Please see http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_04 Thanks, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

