From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23785 invoked by alias); 9 Feb 2015 09:41:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19837 Received: (qmail 4384 invoked from network); 9 Feb 2015 09:40:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f126d000001e9a-68-54d8801011e9 Date: Mon, 09 Feb 2015 09:40:50 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: command name '-' Message-id: <20150209094050.6fe9b058@pwslap01u.europe.root.pri> In-reply-to: References: <54D7A2FB.6010608@gmx.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVy+t/xq7oCDTdCDOZN5bTYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4MvY+XspWsIS9YsrN2ewNjKdZuxg5OCQETCQWXUnuYuQEMsUk Ltxbz9bFyMUhJLCUUWLhh6OsEM4iJokJz7cygVQJCWxjlHjWWAdiswioShyd8okdxGYTMJSY umk2I4gtIiAqsXzFZrC4sICsxNflv1hAlvEK2Es8fc0LEuYU0JRY0niHBWJkkkTrrx6wcn4B fYmrfz8xQRxkLzHzyhmwkbwCghI/Jt8Dq2cW0JLYvK2JFcKWl9i85i0zxBx1iRt3d7NPYBSa haRlFpKWWUhaFjAyr2IUTS1NLihOSs811CtOzC0uzUvXS87P3cQICdgvOxgXH7M6xCjAwajE w2uhfD1EiDWxrLgy9xCjBAezkgjv94wbIUK8KYmVValF+fFFpTmpxYcYmTg4pRoYrZOn3Aiw +xv/h7v+8ZqjGVYSsqlnTj6+n+6jfPPoc59D1ckNjwUWCLbETtKMy/v1tOKqarOpPtf9KFGu LZbOQtlH9+5du236SqU9SidVHj08I/Ukmu9Sm6OzwBPbWSEHsjV+5U1TmLjXxkZhxS2VK0n7 oj+Fb1mV+/pgdPfHPZavLxrt2CW3QImlOCPRUIu5qDgRANaxkI42AgAA On Sun, 8 Feb 2015 18:38:22 +0000 Daniel 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