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

Re: Looking for trouble.



On Mon, Apr 19, 1999 at 09:58:21AM +0100, Oliver Elphick wrote:
> Bob Hilliard wrote:
>   >"Oliver Elphick" <olly@lfix.co.uk> writes:
>   >
>   >> To go to the directory you were in last:
>   >> cd ~-
>   >
>   >     What is the purpose of the tilde in this command?  In bash and
>   >sh, at least, `cd -' is what I was taught, and it works fine.  Do some
>   >other shells require `cd ~-'?
>  
> That is the Korn shell convention; I did not know that bash supported the
> simpler form.

Do you mean that ~- is the ksh convention, or just - is? Just - works fine
on the ksh I'm used to (HP-UX). tcsh also supports "cd -".


Hamish
-- 
Hamish Moffatt VK3TYD. 
CCs of replies from mailing lists are welcome.


Reply to: