Re: Looking for trouble.
"Oliver Elphick" <olly@lfix.co.uk> writes:
> 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.
>
> --
> Oliver Elphick Oliver.Elphick@lfix.co.uk
> Isle of Wight http://www.lfix.co.uk/oliver
I have learned two things from this exchange:
1. I learned how the Korn Shell handles this.
2. I learned to specify the applicable shell when answering a
question about shell commands.
Bob
--
_
|_) _ |_ Robert D. Hilliard <hilliard@flinet.com>
|_) (_) |_) Palm City, FL USA PGP Key ID: A8E40EB9
Reply to: