10-05-2004 03:25 AM
set -A ab 1 2 3
typeset -x | grep ^ab
the question is, why is the output from
the two files different
and how can I get file2's output to look like file1's
Solved! Go to Solution.
10-05-2004 04:15 AM
From the man page of "ksh".
The export built-in command does not handle arrays properly. Only the
first element of an array is exported to the environment.//
Either you have to run file2 with a . (like . ./file2) or declare your arrays within file2 or put the array in a file (say arrays.rc and call it from file2 like . /whereever/arrays.rc)