zsh-workers
 help / color / mirror / code / Atom feed
* typeset -U and "special-ness"
@ 1999-05-15 18:32 Scott RoLanD
  1999-05-16 13:22 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Scott RoLanD @ 1999-05-15 18:32 UTC (permalink / raw)
  To: **Zsh Workers List

I love 'typeset -U' for paramaters like PATH, MAILPATH, and
MANPATH. However, I was disappointed to learn that 'typeset -U
LD_LIBRARY_PATH' has no effect.

I understand that 'typeset -U' only works for "special" paramaters,
but why? How did MANPATH get elevated to the status of a "special"
paramater when it isn't used by the shell at all?

Also, 'typeset -U' doesn't remove duplicates from current values of
the paramaters. Any good reason for this?
For example:
	% unset MANPATH
	% typeset +U MANPATH
	% echo $MANPATH

	% MANPATH=foo:foo
	% echo $MANPATH
	foo:foo
	% typeset -U MANPATH		<- Why not effect the value?
	% echo $MANPATH
	foo:foo
	% MANPATH=$MANPATH
	% echo $MANPATH
	foo

What do you think?
-- 
Scott RoLanD
http://www.chat.net/~shr/


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

end of thread, other threads:[~1999-05-16 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-15 18:32 typeset -U and "special-ness" Scott RoLanD
1999-05-16 13:22 ` Peter Stephenson

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