From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id XAA06936 for ; Thu, 17 Oct 1996 23:53:51 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA08795; Thu, 17 Oct 1996 09:47:33 -0400 (EDT) Resent-Date: Thu, 17 Oct 1996 09:47:33 -0400 (EDT) Message-Id: <199610171347.PAA29053@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: Host pws@localhost didn't use HELO protocol To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: pushd In-reply-to: "Anthony Heading"'s message of "Thu, 17 Oct 1996 14:22:37 MET." <199610171322.OAA10786@gmp-etpres1.uk.jpmorgan.com> Date: Thu, 17 Oct 1996 15:47:21 +0200 From: Peter Stephenson Resent-Message-ID: <"PgYYM1.0.L92.qZZPo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2251 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Anthony Heading wrote: > I'm still puzzled, though, as to why Peter et al want this PUSHD_CYCLE > option . The reason it's so easy to implement is that it is, in > effect, simply aliasing pushd=cd. Completely altering the de-facto > standard definition of a shell command is something on balance to be > avoided. To repeat my suggestion , why not just make cd +n push the > current directory? Then it'll do exactly the same as pushd, while > being two less chars to type, and not requiring extra emulation > parameters. But it isn't equivalent, because cd doesn't push things down on the stack, just bring them to the top replacing whatever's there, unless you have autopushd set, which I don't. I don't want cd to push things on the stack, that's why we have pushd. I want cd to change directories and pushd to push directories. I don't think that's unreasonable. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.