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


Groups > gnu.bash.bug > #11456

Re: Inconsistent arithmetic evaluation of parameters

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: Inconsistent arithmetic evaluation of parameters
Date Tue, 01 Sep 2015 23:24:58 +0200
Lines 15
Approved bug-bash@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain
X-Trace usenet.stanford.edu 1441142710 30441 208.118.235.17 (1 Sep 2015 21:25:10 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Greg Wooledge <wooledg@eeg.ccf.org>, "bug-bash@gnu.org" <bug-bash@gnu.org>
To Dennis Williamson <dennistwilliamson@gmail.com>
Envelope-to bug-bash@gnu.org
X-Virus-Scanned amavisd-new at mnet-online.de
X-Auth-Info Er2kP95TpulbD1YlC7vT8tbl31d6yunZeS0ErJ5R0zWEGKSOSEIZ27AI93NviLy5
X-Yow Yow!! It's LIBERACE and TUESDAY WELD!! High on a HILL... driving a LITTLE CAR... I wanna be in that LITTLE CAR, too!! I wanna drive off with LIBBY and TUESDAY!
In-Reply-To <CANaoh6+kxLMGGAO8GR37xriYh8j3AZgUDNs4uL+Qjvz5bxT_Ww@mail.gmail.com> (Dennis Williamson's message of "Tue, 1 Sep 2015 16:05:15 -0500")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x
X-Received-From 2001:a60:0:28:0:1:25:1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11456

Show key headers only | 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