bug-bash
[Top][All Lists]
Advanced

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

export does not work on array


From: Byron Clark
Subject: export does not work on array
Date: Mon, 22 May 2006 11:27:53 -0600
User-agent: Mutt/1.5.9i

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' - \DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -\DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux bclarklx 2.6.16-1-686 #2 Thu May 4 18:22:23 UTC 2006 i686 
GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.1
Patch Level: 14
Release Status: release

Description:
    When exporting a variable containing an array, child processes
    cannot see the array.
        
Repeat-By:
    $ FOO=(1 2 3)
    $ BAR=test
    $ export FOO
    $ export BAR
    $ set | grep FOO
    FOO=([0]="1" [1]="2" [2]="3")
    $ set | grep BAR
    BAR=test
    $ bash
    $ set | grep FOO
    $ set | grep BAR
    BAR=test
    $ exit




reply via email to

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