David Jacobson on Thu, 1 Feb 2001 20:04:19 +0200


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

Re: GLUG: Environment vars on Mandrake 7.2


Howzit,

since its exporting the variable in the shell script and no where else...
if you want it to export u gotta do a source <file> or . <file>

good luck :)

David Jacobson

On Thu, Feb 01, 2001 at 11:31:28AM +0200, Pierre Bosman wrote:
> 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
> ---
> To unsubscribe from this list: send the line "unsubscribe glug" in
> the body of a message to majordomo@xxxxxxxxxxxxx If you have a
> problem unsubscribing, please mail owner-glug@xxxxxxxxxxxx