Quick question- is there any good way to import environment variables into scripts? I tried running this script:
When I ran the script, it gave me a strange cross-shaped cursor and hung up. When I clicked anywhere, it stopped hanging and actually echoed the correct string. I can find tons of articles about exporting variables and the parent/child shell environment variable relationship, but nothing about scripts really. Any thoughts?