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

Re: uppercase inheritance



In the last episode (Dec 10), Norman.Azadian@xxxxxxxxxxxx said:
> I've tried this under version 3.1.6 (on HP-UX version 11.0):
> 
> 	= typeset -u -x aaa=bbb
> 	= echo $aaa
> 	BBB
> 	= zsh
> 	= echo $aaa
> 	bbb
> 	=
> 
> Am I missing something, or has ZSH neglected to pass on the uppercase
> property to the subshell?  I get the same results when the HP posix
> sh is the subshell.  When I do the entire experiment with sh, I get
> the expected results ($aaa is always BBB).

There's no way zsh can pass 'typeset' options to subshells, since all
it can pass are the variable names and contents via "char **envp".  It
looks like zsh leaves the variable as-is, and only uppercases it for
display.  Sounds like a zsh bug.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxx



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