From: Mikael Magnusson <mikachu@gmail.com> To: zzapper <zsh@rayninfo.co.uk> Cc: Zsh-Users List <zsh-users@zsh.org> Subject: Re: Is the ~ really superfluous in a cd ~- type command? Date: Wed, 16 Mar 2022 16:51:24 +0100 [thread overview] Message-ID: <CAHYJk3SpCYBXjJHw9xw7cEvZn5SsJqFhy0fH_+7VAy-KprCSFw@mail.gmail.com> (raw) In-Reply-To: <dd29f6f9-8997-5e41-2bf0-11bd6905f88a@rayninfo.co.uk> On 3/16/22, zzapper <zsh@rayninfo.co.uk> 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
next prev parent reply other threads:[~2022-03-16 15:52 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-16 9:29 zzapper 2022-03-16 15:51 ` Mikael Magnusson [this message] 2022-03-16 16:06 ` zzapper
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAHYJk3SpCYBXjJHw9xw7cEvZn5SsJqFhy0fH_+7VAy-KprCSFw@mail.gmail.com \ --to=mikachu@gmail.com \ --cc=zsh-users@zsh.org \ --cc=zsh@rayninfo.co.uk \ --subject='Re: Is the ~ really superfluous in a cd ~- type command?' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).