From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10455 invoked by alias); 22 Feb 2018 19:44:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42387 Received: (qmail 6847 invoked by uid 1010); 22 Feb 2018 19:44:53 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-3.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.67):SA:0(-1.9/5.0):. Processed in 9.181764 secs); 22 Feb 2018 19:44:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.21.219.59] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=VocN/d+n c=1 sm=1 tr=0 a=utowdAHh8RITBM/6U1BPxA==:117 a=utowdAHh8RITBM/6U1BPxA==:17 a=kj9zAlcOel0A:10 a=x7bEGLp0ZPQA:10 a=pGLkceISAAAA:8 a=-whAWumd1gI7juxBXeAA:9 a=CjuIK1q_8ugA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1519328064; bh=9rRZeXXS4txlSGq4QEZsfMcaplDv1M7iRxG8N6B4o18=; h=Date:From:To:Subject:In-Reply-To:References; b=tSWr+3BPlUmFESLbSgVnfBKMwQLm7sJcEuVZhYRqlwVHP/75JPZOd7unYs55LWfUp Fy8O6Z96YBWUzssk9SSGkn8n3cQ7XEFOCMQuCiQtNYM2t824EkJflJGr6hSTDTc0PN U22B3a0qXR9xiNaKeT6Q/XmRH1cio1wBUJVKq7UqU7raQY7Z9VqT2+WSYawr9MSufz Rz12ohsSpE7MRIco69764lWNEndYoOSY8DJB5XjSdiZK2jamVASxCacBseBW2ajUSZ fs7dDmQddaftkNEEiWcQDB+I/bKkhuQTVb6rsrbWIzC8hF86taqjxscLSMiujvlsHM 5uKIDHjcSLIzA== Date: Thu, 22 Feb 2018 19:34:23 +0000 From: Peter Stephenson To: zsh workers Subject: Re: [BUG]builtin echo error doing arguments parsing Message-ID: <20180222193423.16d0bf46@ntlworld.com> In-Reply-To: References: <20180222093711.0777e602@pwslap01u.europe.root.pri> <20180222103201.314c839b@pwslap01u.europe.root.pri> <20180222172601.2b7cb68b@pwslap01u.europe.root.pri> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKeXuX4jPjOINV6a6GixQ2LW2XpABmo2ls0H660IHPeXhhig9y84nSErm7RC+4whmgUbZMpAuE+cRmufkUGv1F8Ymsjvx3V/LeGqGmp7H0JLop5iePeA hAuQKqbzYQF8ZvdUjdrOoab0JuDysOviCnHOFZuAcruO6ZyQDnhdSRpzMWF3GJ+/5WynaPH+jFr8KQ== On Thu, 22 Feb 2018 20:00:58 +0100 Mikael Magnusson wrote: > I didn't try the patch but currently echo > -- just outputs --, only - terminates options for echo. Yes, the -- behaviour appears to be general behaviour, in fact, so not something that should be changed. So indeed it's hard to do this at the moment in a shell script without some kind of kludge for zsh. "disable echo" and use /bin/echo might be the best bet. However, I'm not really sure if that makes it less or actually more useful to align with other shells (with POSIXBUILTINS) from now on... it's not obvious perpetuating the need for a kludge for ever more is the best bet. pws