bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression in development version of bash w.r.t. associative hashes


From: Stefano Lattarini
Subject: Regression in development version of bash w.r.t. associative hashes
Date: Fri, 03 May 2013 11:48:59 +0200

[+cc bug-gnulib, see below for a reason]

Minimal reproducer of the regression:

  $ cat foo.bash
  echo "$BASH_VERSION"
  declare -A hash
  echo ${hash[a/b]}
  echo $?

  $ /bin/bash foo.bash
  4.2.45(1)-release

  0

  $ ~/bleeding/bin/bash foo.bash
  4.3.0(1)-alpha
  foo.bash: line 3: a/b: division by 0 (error token is "b")
  1

Notice that the new behaviour breaks the gnulib-tool script
(that's how I noticed this regression).

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]