bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for `cd' to accept two parameters (repeat post)


From: Chet Ramey
Subject: Re: Patch for `cd' to accept two parameters (repeat post)
Date: Mon, 22 Sep 2003 10:00:59 -0400

> Machine Type: sparc-sun-solaris2.8
> 
> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> 
> Description:
>     This is a feature I like in ksh. Running 'cd' with two parameters will
>     cause all instances of the first string to be replaced in 'pwd' with
>     the second string, and then a 'cd' done.

This is trivial to do with a shell function.  One is included in the bash
distribution: examples/functions/ksh-cd.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]