[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cd with two arguments
From: |
Stefan Westerfeld |
Subject: |
cd with two arguments |
Date: |
Sat, 12 May 2001 10:54:23 +0200 |
Hi!
I used to use some Motorola SystemV machine with ksh some time ago that
accepted two arguments to cd, like
stefan@stefan:~/src/kdelibs/arts/mcop$ cd src build
stefan@stefan:~/build/kdelibs/arts/mcop$
that is, if you give two arguments, then cd
- takes the current path
- searches for the first argument
- replaces it by the second argument
- cd's into that path
I think that this behaviour sometimes has a convenient effect, and if you
don't know about it, it shouldn't hurt you. Bash (2.05) doesn't do that.
Could that be included in bash in the future? I could try to make a patch,
if you like.
Cu... Stefan
--
-* Stefan Westerfeld, stefan@space.twc.de (PGP!), Hamburg/Germany
KDE Developer, project infos at http://space.twc.de/~stefan/kde *-
- cd with two arguments,
Stefan Westerfeld <=