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: Mon, 24 Nov 1997 10:04:28 +0000	[thread overview]
Message-ID: <199711241004.FAA20784@math.gatech.edu> (raw)
In-Reply-To: Your message of "Fri, 21 Nov 1997 14:23:56 EST." <19971121142356.16832@astaroth.nit.gwu.edu>

sweth@astaroth.nit.gwu.edu said:
> my next question, then, is if  these do, in fact, work the way i
> surmised (that is, they remove redundancies  and map their
> colon-delimited versions onto the capitalized equivalent  variable).

Yes, but there's no removing of redundancies.  There's back-mapping too, if you set CDPATH then cdpath gets set.

sweth@astaroth.nit.gwu.edu said:
> also, what exactly is the format for defining them?  is it just
> paren-enclosed, space-delimited lists? 

Yes, standard array syntax.

sweth@astaroth.nit.gwu.edu said:
> the version of typeset on my system doesn't seem to support this
> option  (or at least, the man page doesn't mention it).  typeset
> doesn't return an error  if i try to use the -U switch, however; could
> someone summarize the syntax so i  could see if it is, in fact,
> implemented?

Try:

cdpath=(.. ..)
echo $cdpath	;# Should give ".. .."
typeset -U cdpath
echo $cdpath	;# Should give ".."

Works in my 3.1.2 beta, anyway.  I don't know whether typeset -U is in 3.0.5.


      reply	other threads:[~1997-11-24 10:27 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
1997-11-19 16:27 ` Bart Schaefer
1997-11-21 19:23   ` Sweth Chandramouli
1997-11-24 10:04     ` Bruce Stephens [this message]

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=199711241004.FAA20784@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).