SET produces different results in a script?

Hi all,

So wondering if anyone has ever come across this...

I know if you run SET command you can see a listing of all your shell variables. HOWEVER, if you create a script in vi, and in that script you issue a set command, it does not return the variables when you run the file after making it executeable.

For instance...
user->set
variables would be displayed

but if you create a script named showme

vi showme
set

Now you run the showme file

showme
variables do not show

Anyone come across this or know how to get it to work properly?

Try env

Still doesnt work. Im using BASH. When I use env in the shell the variables do not appear and shen i use SET in the vi the variables do not appear.

Strange. I just tried it on my system, which is:

BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="powerpc-apple-darwin7.0")
BASH_VERSION='2.05b.0(1)-release'

It works fine. What I did:

set

...all the info appears...

Then I created a script called "showset" with only one command (set) in it, made the script executable and then ran it.

chmod +x showset
./showset

And, voil�, it produces the same info like before.

def not working for me. Guess ill try again tomorrow.