On Tuesday 13 November 2007, Khem Raj wrote: > Mike Frysinger wrote: > > On Tuesday 13 November 2007, Khem Raj wrote: > >> This patch makes this shell script runnable on dash in addition to bash. > >> If you find it useful please apply. > > > > imo, it is not useful. your dash is broken, so complain to the dash > > maintainers to fix it. there are no bashisms in that script, just POSIX > > code that dash does not support. > > While reading though > http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag >_02_06_04 > > I did not find reference which will cover this construct where > assignment inside arithmetic expressions is defined. > > May be I missed something.
it is not the assignment that dash has a problem with, it's the basic arithmetic variable expression. but to address the assignment, 2.6.4 spells it out to me: All changes to variables in an arithmetic expression shall be in effect after the arithmetic expression ...... -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
