Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: var=$( typeset "$1" ) ... not within a function.




On 2022-10-21 11:25, Bart Schaefer wrote:

Lower-case cdpath is not an environment variable, so printenv would
have no reason to print it.

Sorry I meant:

2 /aWorking/Zsh/Source/Wk 2 $ printenv path

2 /aWorking/Zsh/Source/Wk 2 $ printenv PATH
.:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2 /aWorking/Zsh/Source/Wk 2 $ typeset -p path
typeset -aT PATH path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin /sbin /bin )

2 /aWorking/Zsh/Source/Wk 2 $ typeset -p PATH
export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin /sbin /bin )







Messages sorted by: Reverse Date, Date, Thread, Author