Re: [patch] bashism in sh script

2003-08-14 Thread Pavel Roskin
On Fri, 1 Aug 2003, GoTaR wrote: There's no thing like $[..] to evaluate expressions in POSIX sh, it's bash feature. sh uses $((..)) instead (and bash understands it too). Here comes fix. Does the next line work for you? I mean this: if (( $A 10 )); then A=0$A; fi I think it's a much

Re: [patch] bashism in sh script

2003-08-14 Thread Pavel Roskin
On Fri, 8 Aug 2003, Andrew V. Samoilov wrote: I think patch below make audio.in much more portable. Applied. BTW, I don't see reason to substitute audio from audio.in. There is @AWK@ in audiofs_copyout(), but it's hard to notice :-) -- Regards, Pavel Roskin

Re: [patch] bashism in sh script

2003-08-14 Thread Andrew V. Samoilov
On Fri, 1 Aug 2003, GoTaR wrote: There's no thing like $[..] to evaluate expressions in POSIX sh, it's bash feature. sh uses $((..)) instead (and bash understands it too). Here comes fix. Does the next line work for you? I mean this: if (( $A 10 )); then A=0$A; fi I think