[sf-lug] printenv "vs." set [was: Re: shell, man(1) [was: ...

Alex Kleider akleider at sonic.net
Sun Aug 21 09:52:49 PDT 2016


On 2016-08-21 08:49, Michael Paoli wrote:

> Yes, they're not doing the same thing.
> RFTM.  :-)
> 
> bash(1)
> ...
>>> set [--abefhkmnptuvxBCEHPT] [-o option-name] [arg ...]
>>> set [+abefhkmnptuvxBCEHPT] [+o option-name] [arg ...]
>>>       Without options, the name and value of each shell  variable
> 
> printenv(1)
> ...
>        Print the values of the specified environment VARIABLE(s)
> ...

...but TFMs suggest to me that without params, they should in fact be 
doing the same thing.  (... unless "shell variable" is not the same as 
"environment VARIABLE" in which case I've more to learn.)




More information about the sf-lug mailing list