zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Peter Stephenson <pws@ifh.de>,
	zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: pushd
Date: Tue, 15 Oct 1996 10:08:34 -0700	[thread overview]
Message-ID: <961015100834.ZM25349@candle.brasslantern.com> (raw)
In-Reply-To: Peter Stephenson <pws@ifh.de> "Re: pushd" (Oct 15,  2:45pm)

On Oct 15,  2:45pm, Peter Stephenson wrote:
} Subject: Re: pushd
}
} "Bart Schaefer" wrote:
} > Is the following more like the behavior you want?
} 
} Well, if I adapt your suggestion to:
} 
} pushd () {
}         setopt localoptions globsubst
}         unsetopt ksharrays
[...]
} }
} 
} (since I need ~ expansion and I don't want to count entry 0 from dirs
} in the array indexing)

Tilde expansion?  Oh, yeah, I forgot that dirstack entries (or rather,
"dirs" output) are tilde-abbreviated.  I wasn't anywhere near my home
directory when I was playing with this.

} I seem to get basically what I want.  It's yet
} another case of running very hard to stay in the same place.

Yes, I certainly know how you feel.  Most of the contents of my .z*
files are there just to help me lean into the hurricane.

I'd never noticed the (previous) discrepancy between zsh and csh/bash
directory stack behavior, and I'd similarly not yet noticed the change,
because I long ago took to opening a new xterm anytime I'll be spending
more than a few seconds in another directory.  So my stack never gets
more than about 3 entries deep.  But I've done plenty of my own griping
about changes made to features that other people didn't use/notice.

I'm with you for a PUSHD_CYCLE option, set by default, which when not
set would give the old zsh behavior.

Is the following the ChangeLog entry for pushd becoming cyclic?  Has it
really been that long ago?

        March/April 1995

        * pushd/popd changes from Anthony Heading <aheading@jpmorgan.com>



-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"


  reply	other threads:[~1996-10-15 17:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-11 12:34 pushd Peter Stephenson
1996-10-11 13:01 ` pushd Vinnie Shelton
1996-10-11 15:13   ` pushd Peter Whaite
1996-10-11 19:53 ` pushd Bart Schaefer
1996-10-15 12:45   ` pushd Peter Stephenson
1996-10-15 17:08     ` Bart Schaefer [this message]
1996-10-15 17:34       ` pushd Zoltan Hidvegi
1996-10-16  5:38         ` pushd Bart Schaefer
1996-10-16  8:42           ` pushd Zefram
1996-10-16 17:36             ` pushd Bart Schaefer
1996-10-16 18:10               ` pushd Zefram
1996-10-16 21:16                 ` pushd Bart Schaefer
1996-10-17 13:22                   ` pushd Anthony Heading
1996-10-17 13:47                     ` pushd Peter Stephenson
1996-10-17 17:01                     ` pushd Bart Schaefer
1996-10-16 22:28                 ` pushd Zoltan Hidvegi
1996-10-16 12:42           ` pushd Peter Stephenson
1996-10-15 18:45       ` pushd Anthony Heading
1996-10-18 13:14 pushd Ray Van Tassle-CRV004

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=961015100834.ZM25349@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=pws@ifh.de \
    --cc=schaefer@nbn.com \
    --cc=zsh-workers@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).