Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11456

Re: Inconsistent arithmetic evaluation of parameters

From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: Inconsistent arithmetic evaluation of parameters
Date 2015-09-01 23:24 +0200
Message-ID <mailman.361.1441142709.19560.bug-bash@gnu.org> (permalink)
References <61895190-83A6-4D62-B90E-65023D5E966B@gmail.com> <20150901175030.GP4309@eeg.ccf.org> <CANaoh6LNi_YyOOB56ZMR3P8thRSMfoTcDCGyW8S921nVoP1H7Q@mail.gmail.com> <20150901202308.GR4309@eeg.ccf.org> <CANaoh6+kxLMGGAO8GR37xriYh8j3AZgUDNs4uL+Qjvz5bxT_Ww@mail.gmail.com>

Show all headers | View raw


Dennis Williamson <dennistwilliamson@gmail.com> writes:

> $ echo $((foo))  # expansion succeeds, indirection fails
> dash: 4: Illegal number: bar

The indirection didn't fail, it just didn't produce a number, so the
expression is malformed.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Inconsistent arithmetic evaluation of parameters Andreas Schwab <schwab@linux-m68k.org> - 2015-09-01 23:24 +0200

csiph-web