[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A bug report: misperforming equality test
From: |
Chet Ramey |
Subject: |
Re: A bug report: misperforming equality test |
Date: |
Thu, 26 Jun 2003 14:49:20 -0400 |
> Machine Type: i686-pc-cygwin
>
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
>
> An arithmetic equality test misperforms in a script. (It works okay =
> on the command line.)
If you're using `sh' to run the script, you should be aware that `sh'
on cygwin is actually ash, and probably doesn't understand ((...)) as
the arithmetic operator. It's most likely being parsed as two nested
subshells.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/