From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14273 invoked from network); 15 May 1999 18:29:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 May 1999 18:29:59 -0000 Received: (qmail 18430 invoked by alias); 15 May 1999 18:29:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6292 Received: (qmail 18423 invoked from network); 15 May 1999 18:29:47 -0000 Message-ID: <19990515113229.A26292@chat.net> Date: Sat, 15 May 1999 11:32:29 -0700 From: Scott RoLanD To: **Zsh Workers List Subject: typeset -U and "special-ness" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.1 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/