As (1) both OpenPKG and non-OpenPKG Bash, (2) both old and new versions
of Bash and (3) the error does not exists on other platforms, I would
say: yes, Bash is broken on your IRIX64 platform.

For me it looks that it already incorrectly _parses_ (and not just
evaluates) the $((..)) construct. The problem you can just hunt down
by using a debugger or at least instrumenting Bash with many debugging
printf's.

Fair enough - but before I go hunting down a (potentially) phantom bug, could someone just confirm that my syntax is right in the first place ;)

Someone suggested that "A=$(( 3 + 4 ))" should evaluate as "A=$7" - but I think this is most likely wrong (as trying to execute "3" doesn't make sense in this context).

*Should* "A=$(( 3 + 4 ))" result in A having value 7?

Is "A=$(( 3 + 4 ))" synonomous with "(( A = 3 + 4 ))"?

Cheers,

        Stuart
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to