bug-bash
[Top][All Lists]
Advanced

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

Array variables not exported


From: Andrew Walrond
Subject: Array variables not exported
Date: Wed, 19 Mar 2003 18:55:58 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021020

Hi

I don't know if this is a bug or not, but I cannot access exported array variables from scripts. Example:

hal3 root # declare -a AAA=( Me And My Shadow )
hal3 root # export AAA
hal3 root # export
declare -ax AAA='([0]="Me" [1]="And" [2]="My" [3]="Shadow")'
declare -x CVS_RSH="ssh"
...

hal3 root # cat ./tst
#! /bin/bash
export
echo ${AAA[@]}

hal3 root # ./tst
declare -x CVS_RSH="ssh"

hal3 root # echo ${AAA[@]}
Me And My Shadow
hal3 root #

Is this a bug or a feature ?

Andrew Walrond





reply via email to

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