Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is the ~ really superfluous in a cd ~- type command?



On 3/16/22, zzapper <zsh@xxxxxxxxxxxxxx> wrote:
> Hi
>
> cd - or cd ~-
>
> cd -1 or cd ~-1
>
> seem to do the same thing

Yes, cd handles -num itself, but for other commands you need the expansion.

> # an odd one?
>
> cd -- same as cd ~

cd without arguments goes to the home directory.

-- 
Mikael Magnusson




Messages sorted by: Reverse Date, Date, Thread, Author