From: Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>
To: zsh-users@sunsite.auc.dk
Subject: Re: Second form of cd.
Date: Tue, 13 Apr 1999 17:07:38 -0400 [thread overview]
Message-ID: <19990413170738.A9872@astaroth.nit.gwu.edu> (raw)
In-Reply-To: <19990413153219.A20809@lyric.cig.mot.com>
On Tue, Apr 13, 1999 at 03:32:20PM -0500, Larry P. Schrof wrote:
> I am wondering if this an intentional feature or a bug. I am running
> 3.1.5...
>
> When you type 'cd <old> <new>' on the command line, zsh replaces
> only the FIRST occurance of <old> in the directory. I've actually run
> into situations where <old> occurs more than once in $PWD, and I'd
> like <new> to replace this second occurance of old.
>
> I am requesting that <new> replace ALL occurances of <old> in $PWD, not
> just the first one.
along the same lines, the ^old^new form of history substitution
replaces just the first instance of old. perhaps a flag of some sort
(cd -g, maybe, for cd, and ^^old^new for history substitution?) could be
added to indicate that global replacement should occur?
-- sweth.
--
Sweth Chandramouli
IS Coordinator, The George Washington University
<sweth@gwu.edu> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>
next prev parent reply other threads:[~1999-04-13 21:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-13 20:32 Larry P. Schrof
1999-04-13 21:07 ` Sweth Chandramouli [this message]
1999-04-14 16:02 ` Bart Schaefer
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=19990413170738.A9872@astaroth.nit.gwu.edu \
--to=sweth@astaroth.nit.gwu.edu \
--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).