| Pierre Bosman on Thu, 1 Feb 2001 14:30:19 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: GLUG: Environment vars on Mandrake 7.2 |
Ok, now I'm utterly confused. I tested what you suggested on my machine (madrake 7.2). This worked. I then went to the other machine (Mandrake 7.2) and tried the same. It worked. Then I tried exactly what I did last night, and (for F@#$@ Sakes) it worked. I know for a fact it did not work, cause I tried to compile Apache and it did not see my environment VAR. This looks like the type of scenario that will come back later and bite me in the butt. If anyone else has a suggestion on what could have caused this, please let me know. Otherwise I'll write it off as a typical M$ type of error. Thanks Pierre Bosman On Thu, 01 Feb 2001, you wrote: > perhaps -- > > head -1 /somewhere/script > > --> > > #! /bin/bash > > ? > > On Thu, 1 Feb 2001, someone (possibly Pierre Bosman) said: > > > 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 -- Just because he's dead is no reason to lay off work.