[gentoo-user] Environment variables don't export from within scripts

2006-01-02 Thread Kris Kerwin
Hi all, I'm having difficulties exporting environment variables from within scripts. The problem doesn't seem to occur when exporting variables from the command line. To reiterate with an example, # export VARIABLE='test' # echo $VARIABLE works. However, # echo

Re: [gentoo-user] Environment variables don't export from within scripts

2006-01-02 Thread Richard Fish
On 1/2/06, Kris Kerwin [EMAIL PROTECTED] wrote: Hi all, I'm having difficulties exporting environment variables from within scripts. The problem doesn't seem to occur when exporting variables from the command line. To reiterate with an example, # export VARIABLE='test' #

Re: [gentoo-user] Environment variables don't export from within scripts

2006-01-02 Thread Etaoin Shrdlu
On Monday 02 January 2006 22:35, Kris Kerwin wrote: works. However, # echo export VARIABLE='test' test_script # chmod 754 test_script # ./test_script # echo $VARIABLE does not work. I've also tried the above while omitting the 'export' command, to the same

Re: [gentoo-user] Environment variables don't export from within scripts

2006-01-02 Thread Kris Kerwin
Thanks to all for helping. The source command did the trick, Alex.  # echo export VARIABLE='test' test_script # chmod 754 test_script # ./test_script # echo $VARIABLE Get's changed to: # echo export VARIABLE='test' test_script # chmod 754

Re: [gentoo-user] Environment variables don't export from within scripts

2006-01-02 Thread Willie Wong
On Mon, Jan 02, 2006 at 04:30:09PM -0600, Penguin Lover Kris Kerwin squawked: Thanks to all for helping. The source command did the trick, Alex. ?# echo export VARIABLE='test' test_script # chmod 754 test_script # ./test_script # echo $VARIABLE Get's