Re: Back to last driectory
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 11/13/05
- Next message: Michael Tosch: "Re: need all directories from a certain directory up"
- Previous message: Loki Harfagr: "Re: check my own ip number ?"
- In reply to: Thorsten Kampe: "Re: Back to last driectory"
- Next in thread: William Park: "Re: Back to last driectory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Nov 2005 17:46:14 +0100
In comp.unix.shell Thorsten Kampe <thorsten@thorstenkampe.de>:
> * Michael Heiming (2005-11-12 23:16 +0100)
>> In comp.unix.shell base60 <nobody@whitehouse.com>:
>>> Thorsten Kampe wrote:
>>>> * base60 (2005-11-12 16:38 +0100)
[ change directory to previous ]
>>>> Welcome to the twentyfirst century. A directory stack (for pushd/popd)
>>>> already exists - at least in bash and zsh. And "cd" accepts numbers
>>>> ("cd +2"/"cd -2"/cd "~2").
^^^^^ ^^^^^
>> In addition it doesn't work on my box (Linux) with bash 2.05,
>> bash 3.00, zsh or ksh.
> It should:
Not the announced options:
$ cd -2
bash: cd: -2: invalid option
cd: usage: cd [-L|-P] [dir]
> cafeuser@CHILLOUT28% bash --norc --noprofile
> $ pushd /cygdrive/c
> /cygdrive/c ~
> $ pushd /cygdrive/e
> /cygdrive/e /cygdrive/c ~
> $ cd ~1
> $ pwd
> /cygdrive/c
> $ cd ~+2
> $ pwd
> /home/thorsten
Ah see, following your example it does at least something. But it
doesn't make me feel as if I should use it, YMMV.
-- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 112: The monitor is plugged into the serial port
- Next message: Michael Tosch: "Re: need all directories from a certain directory up"
- Previous message: Loki Harfagr: "Re: check my own ip number ?"
- In reply to: Thorsten Kampe: "Re: Back to last driectory"
- Next in thread: William Park: "Re: Back to last driectory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|