zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Jerry Peek <web@jpeek.com>, zsh-users@sunsite.auc.dk
Subject: Re: Bug in "dirs a b c" where a b c are relative paths?
Date: Thu, 2 Nov 2000 16:43:17 +0000	[thread overview]
Message-ID: <1001102164317.ZM19718@candle.brasslantern.com> (raw)
In-Reply-To: <2657.973141614@jpeek.com>

On Nov 1, 10:06pm, Jerry Peek wrote:
} Subject: Bug in "dirs a b c" where a b c are relative paths?
}
} When "dirs a b c d e" puts directories on the stack, should it convert
} any relative pathnames to absolute?  Or does the manpage need a warning?

If anything, it's a documentation problem.  `dirs a b c d e' is just like
assigning to a parameter; it doesn't actually change directories to each
of the argument directories.  The man page says only, "If arguments are
specified, load them onto the directory stack, replacing anything that was
there, and push the current directory onto the stack."  It doesn't say
anything about interpreting the arguments (which pushd and cd do at some
length).

A corresponding interesting manual omission is that cdpath is followed at
popd time (and stack-cycling time with pushd), so actually if you did:

	cdpath=($PWD)
	dirs a b c d e

You could then us `popd' to change to each of the stacked directories just
as if they'd been made relative to $PWD by `dirs'.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      reply	other threads:[~2000-11-02 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-02  5:06 Jerry Peek
2000-11-02 16:43 ` Bart Schaefer [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=1001102164317.ZM19718@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=web@jpeek.com \
    --cc=zsh-users@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).