Re: [Rd] Dialect for shell scripts

2017-12-18 Thread Rodrigo Tobar
Hi all, Thanks to all for your responses. As pointed out by a few of you, using expr is indeed safer, and is what we ended up using in our script to get it accepted in CRAN. On 19/12/17 07:26, peter dalgaard wrote: (I suspect that the text in WRE is actually older than the current POSIX sta

[Rd] Dialect for shell scripts

2017-12-17 Thread Rodrigo Tobar
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 ab