Roman Rumisek wrote: > $ echo $(("096" & 4)) > bash: "096" & 4: syntax error: operand expected (error token is ""096" & 4") > $ echo $((0096 & 4)) > bash: 0096: value too great for base (error token is "0096")
In both of those the 9 is not a valid octal component. You are running into octal conversion problems. Please read the Bash FAQ entry E4 for further details. > Is it bash error ? Bash is doing the right thing. Bob