Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command name '-'
- X-seq: zsh-users 19837
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: command name '-'
- Date: Mon, 09 Feb 2015 09:40:50 +0000
- In-reply-to: <mb8aeu$mam$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <mb87i2$5q2$1@ger.gmane.org> <54D7A2FB.6010608@gmx.com> <mb8aeu$mam$1@ger.gmane.org>
On Sun, 8 Feb 2015 18:38:22 +0000
Daniel <quite@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author