Howdy,
My shell script enviroment variables are not exported (yes, I used export) to the parent shell. This is true of root and user accounts. Although, /etc/profile script env. vars export correctly. This occured after I upgraded to Slackware 9.0.
Here is the sample script I am debugging:
Code:
#!/bin/bash
# sample.sh Foobar script
#
FOOBAR="Hello World"
export FOOBAR
Then I try,
Code:
somebody@network:~# ./sample.sh
somebody@network:~# echo $FOOBAR
somebody@network:~#
, but this works:
Code:
somebody@network:~# FOOBAR="Hello World"; export FOOBAR
somebody@network:~# echo $FOOBAR
Hello World
somebody@network:~#
Yes, my script has exec permission. I am hoping I don't have to recompile bash (like I did for ISC dhclient, because something is broken in the package - I had to use the source tarball from ISC). And many hours/google searches later I ended up here. Any Ideas?
Thanks in adv. for any help (/sympathy)!!