correct error message?

2016-11-26 Thread L A Walsh
I was checking to see if an associative array had a member: echo $BASH_VERSION 4.4.5(1)-release declare -A requires=([squid]="-d /var/cache/squid/run") This works as expected: if [[ ${requires[xxx]:-} ]]; then echo ok; else echo not; fi not But this did

Re: Parameter expansion isn't performed first if it's in a parameter expansion

2016-11-26 Thread Chet Ramey
On 11/26/16 8:52 AM, xuzhen wrote: > Bash Version: 4.4 > Patch Level: 5 > Release Status: release > > Description: > The manpage said that brace expansion is performed before any other > expansions. But I found it's not if it's in a parameter expansion. You're right. Bash doesn't perform brace

Parameter expansion isn't performed first if it's in a parameter expansion

2016-11-26 Thread xuzhen
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE

Re: popd controlled free (Segmentation fault) with bash 4.2.47, 4.3.48, and 4.4.5

2016-11-26 Thread Chet Ramey
On 11/26/16 12:51 AM, Mike Frysinger wrote: > On 21 Nov 2016 10:13, Chet Ramey wrote: >> On 11/21/16 6:47 AM, wer...@suse.de wrote: >>> Bash Version: 4.2.47, 4.3.48, 4.4.5 >>> Release Status: release >>> OpenSUSE bug: 1010845 >>> CVE: 2016-9401 >>> >>> Description: >>> popd controlled free (Seg