[Top][All Lists]

[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


I used to use some Motorola SystemV machine with ksh some time ago that
accepted two arguments to cd, like

address@hidden:~/src/kdelibs/arts/mcop$ cd src build

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, address@hidden (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         

reply via email to

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