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


Groups > gnu.bash.bug > #15053 > unrolled thread

Re: Arithmetic evaluation of negative numbers with base prefix

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2019-06-17 11:47 -0400
Last post2019-06-17 11:47 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Arithmetic evaluation of negative numbers with base prefix Greg Wooledge <wooledg@eeg.ccf.org> - 2019-06-17 11:47 -0400

#15053 — Re: Arithmetic evaluation of negative numbers with base prefix

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-06-17 11:47 -0400
SubjectRe: Arithmetic evaluation of negative numbers with base prefix
Message-ID<mailman.287.1560786517.10840.bug-bash@gnu.org>
On Mon, Jun 17, 2019 at 02:30:27PM +0100, Jeremy Townshend wrote:
> In the meantime it would seem cautionary to advise against the pitfall of
> using base# prefixed to variables (contrary to
> mywiki.wooledge.org/ArithmeticExpression) unless you can be confident that
> they will never be decremented below zero.

Fair point.  I've updated <https://mywiki.wooledge.org/ArithmeticExpression>
and <https://mywiki.wooledge.org/BashPitfalls>.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web