zsh-users
 help / color / mirror / code / Atom feed
From: Bruce Stephens <B.Stephens@isode.com>
To: zsh-users@math.gatech.edu
Subject: Re: path/PATH function
Date: Wed, 19 Nov 1997 16:20:40 +0000	[thread overview]
Message-ID: <199711191620.LAA24575@math.gatech.edu> (raw)
In-Reply-To: Your message of "Wed, 19 Nov 1997 10:37:56 EST." <19971119103756.34168@astaroth.nit.gwu.edu>

[I'm reading from zsh-3.1.2, but I think this is the same in 3.0.5]

sweth@astaroth.nit.gwu.edu said:
> cdpath=(. .. ~)
> 	i hadn't declared $CDPATH anywhere in my .z* files, but echoing
> $CDPATH  after login returned
> 	 .:..:/home/sweth/sweth 

sweth@astaroth.nit.gwu.edu said:
> i'm assuming that this is some sort of zsh path-addition option, along
>  the lines of what i had created; i couldn't find any reference to it
> in the FAQ,  however, other than a note in the wish-list for users to
> "be able to create  their own foopath/FOOPATH array/path
> combinations."  does anyone know anything  more about this feature? 

Look at the zshparam manpage.  cdpath and CDPATH are linked in the same way as 
path and PATH.  typeset -U may also be relevant: it tells zsh to keep only the 
first element of identical copies, and comments that this also works with 
special variables like PATH and CDPATH.

Note that there's a typo in the description: should be "For arrays keep only 
the first element of each duplication.", not "...duplications".  I think, 
anyway, perhaps there's a better way to phrase it.



  reply	other threads:[~1997-11-19 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-19 15:37 Sweth Chandramouli
1997-11-19 16:20 ` Bruce Stephens [this message]
1997-11-19 16:27 ` Bart Schaefer
1997-11-21 19:23   ` Sweth Chandramouli
1997-11-24 10:04     ` Bruce Stephens

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=199711191620.LAA24575@math.gatech.edu \
    --to=b.stephens@isode.com \
    --cc=zsh-users@math.gatech.edu \
    /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).