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

Re: Newbie: export command doesn't operate when I execute it using a script?



On Tue, Apr 20, 2004 at 10:41:15AM +0200, sylvain.vedrenne@free.fr wrote:
> 
> Hello,
> 
> >From the command line, export works as I expect, but when I execute an export 
> command by launching a script, it doesn't work as I expect.
> 
> Example:
> 
> % cat try_it
>   export VARIABLE=ItWorksFineImHappy
> % export VARIABLE=DoesntWorkImConfused
> % echo $VARIABLE
>   DoesntWorkImConfused       (so far, so good)
> % chmod +x try_it
> % ./try_it
> % echo $VARIABLE
>   DoesntWorkImConfused
> 
> Did I miss something fundamental? 
> I couldn't find the answer until now... Please help.
> 
> Sylvain.
Hi,
do you know what scope is?
-Kev

Attachment: signature.asc
Description: Digital signature


Reply to: