search for: func_arith_result

Displaying 5 results from an estimated 5 matches for "func_arith_result".

2017 Dec 18
2
Dialect for shell scripts
...to always use expr. -k > For what it's worth, Autoconf does not assume that arithmetic > expansion will be available. Instead, it emits the following shell > code: > if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then > eval 'func_arith () > { > func_arith_result=$(( $* )) > }' > else > func_arith () > { > func_arith_result=`expr "$@"` > } > fi > 2017-12-17 23:55 GMT+01:00 Rodrigo Tobar <rtobar at icrar.org>: >> Dear all, >> >> During a recent package submission, we were highlighted...
2017 Dec 17
2
Dialect for shell scripts
Dear all, During a recent package submission, we were highlighted that some lines in our configure script didn't follow the correct syntax. The lines looked like this: x=$(($y/10)) We were indicated at the time that this is because the statement does not use Bourne shell syntax, which is absolutely true, and also that the manual warns about this, which is true again. So far everything
2017 Dec 18
0
Dialect for shell scripts
For what it's worth, Autoconf does not assume that arithmetic expansion will be available. Instead, it emits the following shell code: if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then eval 'func_arith () { func_arith_result=$(( $* )) }' else func_arith () { func_arith_result=`expr "$@"` } fi 2017-12-17 23:55 GMT+01:00 Rodrigo Tobar <rtobar at icrar.org>: > Dear all, > > During a recent package submission, we were highlighted that some lines in > our configure script didn...
2017 Dec 18
0
Dialect for shell scripts
...what it's worth, Autoconf does not assume that arithmetic > > expansion will be available. Instead, it emits the following shell > > code: > > > if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then > > eval 'func_arith () > > { > > func_arith_result=$(( $* )) > > }' > > else > > func_arith () > > { > > func_arith_result=`expr "$@"` > > } > > fi > > > 2017-12-17 23:55 GMT+01:00 Rodrigo Tobar <rtobar at icrar.org>: > >> Dear all, > >> > >&g...
2017 Dec 18
1
Dialect for shell scripts
..., Autoconf does not assume that arithmetic >>> expansion will be available. Instead, it emits the following shell >>> code: >> >>> if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then >>> eval 'func_arith () >>> { >>> func_arith_result=$(( $* )) >>> }' >>> else >>> func_arith () >>> { >>> func_arith_result=`expr "$@"` >>> } >>> fi >> >>> 2017-12-17 23:55 GMT+01:00 Rodrigo Tobar <rtobar at icrar.org>: >>>> Dear all...