bug-bash
[Top][All Lists]
Advanced

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

Indirect parameter access combined with Assign Default Values


From: Andre Holzhey
Subject: Indirect parameter access combined with Assign Default Values
Date: Sun, 27 Apr 2014 18:07:56 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Configuration Information [Automatically generated, do not change]:
Machine: arm
OS: linux-gnueabihf
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='arm'
-DCONF_OSTYPE='linux-gnueabihf'
-DCONF_MACHTYPE='arm-unknown-linux-gnueabihf' -DCONF_VENDOR='unknown'
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H
  -I.  -I../bash -I../bash/include -I../bash/lib  -D_FORTIFY_SOURCE=2 -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wall
uname output: Linux FrolleinPi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00
GMT 2014 armv6l GNU/Linux
Machine Type: arm-unknown-linux-gnueabihf

Bash Version: 4.2
Patch Level: 37
Release Status: release

Description:
        ${!Name:=Value} produces variables with illegal names. This does not
directly disturb scripting, but it seems to open a terrible universe...
        Anyway, It would be nice, to make this combination work.
        Reproducible on bash 4.1.5 on 86_x64 (Debian)
Repeat-By:
        Name=N1
        echo "${!Name:=Value}"
        (gives 'Value')
        set | grep Value
        (gives '!Name=Value')
        

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]

Attachment: dead.bashbug
Description: Text document


reply via email to

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