LalSalaamComrade@lemmy.ml to A community for the lovers of the scheme programming languages@lemmy.ml · edit-21 year ago***message-squaremessage-square4fedilinkarrow-up16arrow-down10file-text
arrow-up16arrow-down1message-square***LalSalaamComrade@lemmy.ml to A community for the lovers of the scheme programming languages@lemmy.ml · edit-21 year agomessage-square4fedilinkfile-text
minus-squareEbondy@lemmy.worldlinkfedilinkarrow-up1·1 year agoIt is not because it is pre-defined, that it is exported. For instance, on my machine , both PATH and HOST (not HOSTNAME) are defined with bash or zsh, but only PATH is exported. I have: $ export | grep '^PATH' PATH=/opt/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin $ export | grep '^HOST' $ You can add the export directive in your shell “rc” file.
It is not because it is pre-defined, that it is exported. For instance, on my machine , both
PATH
andHOST
(notHOSTNAME
) are defined withbash
orzsh
, but onlyPATH
is exported.I have:
$ export | grep '^PATH' PATH=/opt/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin $ export | grep '^HOST' $
You can add the
export
directive in your shell “rc” file.