From: Scott RoLanD <shr@chat.net>
To: **Zsh Workers List <zsh-workers@sunsite.auc.dk>
Subject: typeset -U and "special-ness"
Date: Sat, 15 May 1999 11:32:29 -0700 [thread overview]
Message-ID: <19990515113229.A26292@chat.net> (raw)
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/
next reply other threads:[~1999-05-15 18:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-15 18:32 Scott RoLanD [this message]
1999-05-16 13:22 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990515113229.A26292@chat.net \
--to=shr@chat.net \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).