|
From: | Bill Gradwohl |
Subject: | Re: [Help-bash] set -u in an arithmetic context |
Date: | Thu, 26 Apr 2012 10:14:00 -0600 |
First of all, the best way to deal with this is to stop using set -u
and handle stuff yourself.
unset i
((! i)) && echo "yes"
yes
((! $i)) && echo "yes"
bash: ((: ! : syntax error: operand expected (error token is "! ")
[Prev in Thread] | Current Thread | [Next in Thread] |