[Top][All Lists]

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

{varname} for redirection does not work with arrays

From: unknown
Subject: {varname} for redirection does not work with arrays
Date: Wed, 2 Nov 2011 12:01:05 -0600

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-unknown-linux-gnu' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/home/lester/base/share/locale' 
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux example.com #1 SMP Wed Oct 26 
16:56:14 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

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

        If {varname} is an assoc. array in a redirection the exec will fail
        The [] should not be confused with pathname expansion just like ${}.

        $ declare -A array
        $ exec {array[key]}<file

reply via email to

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