Pierre Bosman on Thu, 1 Feb 2001 11:29:06 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Environment vars on Mandrake 7.2


Hello All

I don't know whether I'm missing something simple, but as far as I know this 
should have worked.

In a bash shell I say:

VAR=something
export VAR

In the same shell I have a script that does:
echo $VAR

The value is not set. If I do the same as above, but all in the script, it 
works. I can see $VAR at command line level. I even tried going into another 
shell level. I can still see it. But in the script it is gone.

Any ideas.

Pierre Bosman