On Mon, Apr 18, 2011 at 10:30:35AM -0400, Steven W. Orr wrote:
> ss=1
> (( ss ))
> echo $?               # Also says 1. Should this be 0 because it should be 
> the
>                 # success result same as (( ss != 0 ))

That's not what I get:

imadev:~$ unset ss; ss=0; ((ss)); echo $?
1
imadev:~$ unset ss; ss=1; ((ss)); echo $?
0

I use flag variables like this all the time.  The only difference is
that I do not use "typeset -i" on them.

Reply via email to