From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8096 invoked by alias); 22 Feb 2018 19:01:05 -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: 42385 Received: (qmail 18904 invoked by uid 1010); 22 Feb 2018 19:01:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f171.google.com 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(209.85.216.171):SA:0(-1.9/5.0):. Processed in 2.868054 secs); 22 Feb 2018 19:01:05 -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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1EbNdmszOu6wfcUQu1TAGJcYENECNG4SkClkLL+Bwvw=; b=MpThdYpRsr2tgQsjcgsQy7nUOav924g+fLeDw22EigaLl5XwRjpzUZLGIKoBHpySgl +Kl+Sm5AsOfDVtTBAoEYlxVJGDjEMlah+2n7/qTb3Jg6DJ9pN0xfp0wyXlrzHl4kZe5/ 02qKidj6vCFf80gSEXA3bHxxbsbsrlzGRc43yYFY0CyR8AKvofjgduqEYmNQA4VWpXT1 aKOh1AKLF3Mek+eDudIFX858+sJRWKo4oPdT9NwzTszME75JiLzJJRafMUD1qoI2tZ/Y ah0uOjg5d8gOa0ofKGfnma338M6F09wJo5zyJt4DnEekwrU9r95iK383IcIBvBORVsSE jd1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1EbNdmszOu6wfcUQu1TAGJcYENECNG4SkClkLL+Bwvw=; b=aqi0+5ZgMtVpYkcAEosuc7INhHeRrDnFTa+ITZy2P/FKBBFPB+V6+eqjB5JAJhSDAc 1oK0+xoHI+V4CGLKA7meM1FP8uX49cYmieE812ufWmpHW5k+p4yQuzjWuw00qRkxNS5V +YcsbCquBEaj3GlqnajxPYCJAmcNk6lLAzd4AYR1Soj7qJQYflSO32wqvxj412t2wuYC NJ6+PC/KhZVgPYT333X56ucHxjjc2EEZjN8EvGP7+RxJkLbQVy6S4VBWt/wteY4L1neD tFJyDAgDAEtZ4ZEHj/ePDaRBF1VcPebDLtUR6akyTKh0eXIXX3mYG6mPUzwD+mAkUIQD n8lg== X-Gm-Message-State: APf1xPAum7tqJYnZCXYXBmBd08nAguckECXDVkAg74Y5VqURfdQNc4/B maBYdtBVwD6AZM14O/+ALxlmlHrVo1aVv5Ispm0= X-Google-Smtp-Source: AH8x226AX4T6x5xewoKu5VieXkMVkfYuedVTuGQbUrAX7Ue5WtDrBprfnh8TZAzAtqt1fYy8eZG37yJr+vocqat6Td0= X-Received: by 10.200.18.203 with SMTP id b11mr12913784qtj.55.1519326059311; Thu, 22 Feb 2018 11:00:59 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20180222172601.2b7cb68b@pwslap01u.europe.root.pri> References: <20180222093711.0777e602@pwslap01u.europe.root.pri> <20180222103201.314c839b@pwslap01u.europe.root.pri> <20180222172601.2b7cb68b@pwslap01u.europe.root.pri> From: Mikael Magnusson Date: Thu, 22 Feb 2018 20:00:58 +0100 Message-ID: Subject: Re: [BUG]builtin echo error doing arguments parsing To: Peter Stephenson Cc: zsh workers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2018 at 6:26 PM, Peter Stephenson wrote: > On Thu, 22 Feb 2018 17:50:48 +0100 > Mikael Magnusson wrote: >> On Thu, Feb 22, 2018 at 11:32 AM, Peter Stephenson >> wrote: >> > On Thu, 22 Feb 2018 09:37:11 +0000 >> > Peter Stephenson wrote: >> >> On Wed, 21 Feb 2018 23:23:09 -0800 >> >> wumingxwk@gmail.com wrote: >> >> > if there is only a '-' as argument=EF=BC=8Cbuiltin echo won't print= it >> >> >> >> You might have thought it should at least be turned off in some or mo= st >> >> of the emulation modes... >> > >> > Would look something like this. Probably a good idea if there aren't >> > subtleties? >> >> If we change it now, people would have to add a version check in >> addition to their check for zsh to be able to echo things portably (to >> know if they should add an extra - or not). > > The portable option is "--", which has worked for a long time. Adding - > would be a zsh kludge, nothing to do with portability. My point is that if people are already doing "echo - $whatever" when they detect zsh, and we stop parsing it, their stuff will break (output their extra dash). I didn't try the patch but currently echo -- just outputs --, only - terminates options for echo. --=20 Mikael Magnusson