From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7143 invoked by alias); 8 Feb 2015 17:55:15 -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: 19834 Received: (qmail 7278 invoked from network); 8 Feb 2015 17:55:13 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Message-ID: <54D7A2FB.6010608@gmx.com> Date: Sun, 08 Feb 2015 12:55:07 -0500 From: Eric Cook User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: command name '-' References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:NY3LzZ4yIYgjq9TdN8J+CwdpkGk4MHk7yVYtjkelzItW0/Fr1W5 b1TNnmxopCjdoBSfSghF8oKXDUnm8YHKabIFItGVw/wVEbY+DffGUj7VKyHBln315Y+B60T dzqNwXskNq4lc9NDryYK8kQ2SJOfPlBs2QKkcJgNVXcmGvr/iNFiZIYYH//6n6ByWA7RMwQ v/POXngTJInIGbnOXTsOQ== X-UI-Out-Filterresults: notjunk:1; On 02/08/2015 12:48 PM, Daniel wrote: > I have in my ~/bin, which is in PATH, a command named simply '-' [minus]. I > can't seem to have this one executed. Typing - at the prompt and nothing > happens. Also, whence or type yiels exactly nothing. What gives? > > I like to have + and - commands for changing volume easily in console, over > ssh, however... > - and -- act as end of options for a lot of builtin commands, including whence. so you want: whence - - `-' is a precommand modifier that you can read about in zshbuiltins, but you can disable it using the `disable' builtin. Again using: disable - -