From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: command name '-'
Date: Mon, 09 Feb 2015 09:40:50 +0000 [thread overview]
Message-ID: <20150209094050.6fe9b058@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <mb8aeu$mam$1@ger.gmane.org>
On Sun, 8 Feb 2015 18:38:22 +0000
Daniel <quite@hack.org> wrote:
> Ah, I understand. And thanks for the info on disabling it, it's not obvious
> from reading under "disable" under SHELL BUILTIN COMMANDS in man
> zshbuiltins.
If you mean the problem with quoting the '-', it's generic to builins
(and not just builtins) so it's described at the top of that section.
All builtin commands other than precommand modifiers, even those that
have no options, can be given the argument `--' to terminate option
processing. This indicates that the following words are non-option
arguments, but is otherwise ignored. This is useful in cases where
arguments to the command may begin with `-'. For historical reasons,
most builtin commands also recognize a single `-' in a separate word
for this purpose; note that this is less standard and use of `-- is
recommended.
pws
prev parent reply other threads:[~2015-02-09 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-08 17:48 Daniel
2015-02-08 17:55 ` Eric Cook
2015-02-08 18:38 ` Daniel
2015-02-09 9:40 ` Peter Stephenson [this message]
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=20150209094050.6fe9b058@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-users@zsh.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public 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).