From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21264 invoked by alias); 5 Feb 2015 02:03:18 -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: 19819 Received: (qmail 9874 invoked from network); 5 Feb 2015 02:03:16 -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=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_CsIvc5zk1GBWloSBsZTZPg)" X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=f7zwPcoQMel2pEJwRS33iw==:117 a=f7zwPcoQMel2pEJwRS33iw==:17 a=Hpgzp-inWqAA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=gZbpxnkM3yUA:10 a=tb33LComMAAG5tWUjz0A:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=-SuETbMBz7dhyXc0Tu8A:9 a=m_Lzi0P9ufXvKaZV:21 a=_W_S_7VecoQA:10 Message-id: <54D2CF60.2000807@eastlink.ca> Date: Wed, 04 Feb 2015 18:03:12 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 To: Kurtis Rader Cc: =?UTF-8?B?TGF3cmVuY2UgVmVsw6F6cXVleg==?= , Zsh Users Subject: Re: The "-" and "--" options (was Re: ${var:1:1:=y}) References: <54D155C8.4080600@eastlink.ca> <412544FB-49A2-43AA-BC76-DC1AF1AA71BE@larryv.me> <54D16A4C.9010609@eastlink.ca> <150203192508.ZM2159@torch.brasslantern.com> <54D195B2.4070205@gmx.com> <150204091014.ZM3216@torch.brasslantern.com> <54D25A02.1000605@eastlink.ca> <260A930A-CA77-4BDB-8827-047F742FD3CF@larryv.me> <54D2C805.9020906@eastlink.ca> In-reply-to: --Boundary_(ID_CsIvc5zk1GBWloSBsZTZPg) Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8BIT On 02/04/2015 05:52 PM, Kurtis Rader wrote: > On Wed, Feb 4, 2015 at 5:31 PM, Ray Andrews > wrote: > > On 02/04/2015 03:47 PM, Lawrence Velázquez wrote: > > % echo - - > > Ok, the first hyphen gets eaten, and the next one is literal. > Still, shouldn't > single quotes make anything inside them literal? > > > The single-quotes simply inhibit the shell from performing any > substitutions (e.g., of $var references) inside the quoted string. The > quotes also inhibit splitting the string on $IFS boundaries; i.e., the > shell will pass the resulting string as a single argument to the > command. The echo command simply gets a hyphen whether or not you > quoted it. The echo command has no way of knowing that it was > originally enclosed in single-quotes. Of course. I get fuzzified about the handoff from the shell to external commands. A bonk on the head and all is clear. Never again. --Boundary_(ID_CsIvc5zk1GBWloSBsZTZPg)--