Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Second form of cd.
- X-seq: zsh-users 2301
- From: Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Second form of cd.
- Date: Tue, 13 Apr 1999 17:07:38 -0400
- In-reply-to: <19990413153219.A20809@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990413153219.A20809@xxxxxxxxxxxxxxxxx>
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@xxxxxxx> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author