zsh-users
 help / color / mirror / code / Atom feed
* uppercase inheritance
@ 1999-12-10 15:41 Norman.Azadian
  1999-12-10 15:47 ` Nemeth Ervin
  1999-12-10 17:21 ` Dan Nelson
  0 siblings, 2 replies; 3+ messages in thread
From: Norman.Azadian @ 1999-12-10 15:41 UTC (permalink / raw)
  To: zsh-users

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).

I  wasn't able to find a buglist, so I'm noting this here.  If there is a
buglist, please point me at it.  Thanks.

NHA
norman.azadian@swisscom.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uppercase inheritance
  1999-12-10 15:41 uppercase inheritance Norman.Azadian
@ 1999-12-10 15:47 ` Nemeth Ervin
  1999-12-10 17:21 ` Dan Nelson
  1 sibling, 0 replies; 3+ messages in thread
From: Nemeth Ervin @ 1999-12-10 15:47 UTC (permalink / raw)
  To: Norman.Azadian; +Cc: zsh-users

>>>>> Norman Azadian writes:

> 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
> 	=

Yes, I had the same problems, and though I'm not a zsh-developer, I think I
know why this happens: typeset automatically localizes your variable, and at
least in 3.0.x I haven't found any workaround for this problem.

-- 
  ____                 ____________________________________________________
 /____| NEMETH, ERVIN |____________________________________________________|
//	< airwin @ inf.bme.hu >		http://www.inf.bme.hu/~airwin
||
||	"Nonsense.  All you have to do is say 'Engage'"
||					-- Patrick Stewart about warp theory


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: uppercase inheritance
  1999-12-10 15:41 uppercase inheritance Norman.Azadian
  1999-12-10 15:47 ` Nemeth Ervin
@ 1999-12-10 17:21 ` Dan Nelson
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Nelson @ 1999-12-10 17:21 UTC (permalink / raw)
  To: Norman.Azadian; +Cc: zsh-users

In the last episode (Dec 10), Norman.Azadian@swisscom.com 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@emsphone.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-10 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-10 15:41 uppercase inheritance Norman.Azadian
1999-12-10 15:47 ` Nemeth Ervin
1999-12-10 17:21 ` Dan Nelson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).