I have a bash to math calucations.  It works but also complains about the
last line, even though it works. 

Any ideas how to fix the problem or at least not see the error message and
still work.

#!/bin/bash

if [$1 == '']; then
        echo ''
        echo "format is $0 'math equation'"
        echo "i.e. $0 (2+2)*3"
        echo ''
        exit
fi

echo $1 | /usr/bin/bc -l &2>/dev/null

unfortunately '&2>/dev/null has an additional problem.

david





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to