The Korn shell also has a useful extension to the cd command: if you give it two arguments, it'll look for the first argument in the current working directory and replace it with the second argument, then try to change directory to the result.
For example, if I'm in /home/pne/src/foo/monitor/impl and want to have a look at my co-worker's sources, I could cd pne rku and end up in /home/rku/src/foo/monitor/impl.
Or if I'm in /home/pne/proj/cool-app/src/com/example/coolapp/core/ui/buttons and want to have a look at the compiled classes, I could type cd src bin and end up at the appropriate position in the compiled-classes hierarchy (assuming a fairly typical(?) setup).
Pity that AFAIK bash hasn't adopted this syntax, especially since (again AFAIK) it doesn't conflict with any existing syntax.
no subject
For example, if I'm in /home/pne/src/foo/monitor/impl and want to have a look at my co-worker's sources, I could
cd pne rku
and end up in /home/rku/src/foo/monitor/impl.Or if I'm in /home/pne/proj/cool-app/src/com/example/coolapp/core/ui/buttons and want to have a look at the compiled classes, I could type
cd src bin
and end up at the appropriate position in the compiled-classes hierarchy (assuming a fairly typical(?) setup).Pity that AFAIK bash hasn't adopted this syntax, especially since (again AFAIK) it doesn't conflict with any existing syntax.