Re: checking an environment variable

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

 



On Tue, Sep 16, 2008 at 10:11 AM, Lorenzo Bettini <bettini@xxxxxxxxxxxx> wrote:
> Keith Marshall wrote:
>>
>> Did you export it?
> If I do, on a shell:
> echo $BASH_COMPLETION_DIR
> thus I assume it is exported by the bash_completion script, isn't it?

No, the shell substitutes before invoking echo (if it is not even
a shell-builtin)

steffen@srv:~ # unexported="123"
steffen@srv:~ # echo $unexported
123
steffen@srv:~ # env|grep unexported

(echo worked, but it is not set)

steffen@srv:~ # export exported="45"
steffen@srv:~ # env|grep exported
exported=45

(after export, it is set)

oki,

Steffen


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux