[plug] Bash scripting. syntax error in expression
Michael Holland
myk at myk.id.au
Sat Mar 31 20:42:55 WST 2007
On Sat, 31 Mar 2007, nigel wrote:
> let CHDIFF=$(echo "$CHAMT-$UL"|bc)
bc returns a decimal number, but 'let' accepts only integers.
try just leaving out the 'let '.
Anyway, as a scripting language, bash should be taken out and shot.
You might want to rewrite the script in perl or python.
The only things more vile than bash are csh and VB :-)
More information about the plug
mailing list