Wit wrote:
> <snip>
> To amplify what Bauke said in another post...
>
> When a variable is assigned *on the same line* as a following command, 
> the variable-value pair is *temporarily* exported into the new 
> environment created in the bash sub-shell that is spawned to execute a 
> command normally (this can be overridden in various ways) and does *not* 
> exist in the current shell.
>
> When the variable is defined as you have defined it, it exists in the 
> current shel, but is not exported. This can be over-ridden by, e.g.
>
>      export CC="...."
>
> or after defining it, e.g.
>
>      export CC
>
> "Man bash" is your friend here. Been *lots* of changes over the years 
> *and* every shell is slightly different.
>
>   
>> <snip>
>>     
>
> HTH
>   


Thanks for the full explanation, much appreciated. I am starting to 
fully realise now how much I assume/don't really know when it comes to 
linux and the power of bash. Maybe I will have to rtfm a bit closer 
*and* take a look at some man pages :)

Cheers
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to