zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: [BUG]builtin echo error doing arguments parsing
Date: Thu, 22 Feb 2018 19:34:23 +0000	[thread overview]
Message-ID: <20180222193423.16d0bf46@ntlworld.com> (raw)
In-Reply-To: <CAHYJk3THGAxVRGepVT+eu5_oAHz6Mxv5oPe3rFQ6acaNoQ7QKg@mail.gmail.com>

On Thu, 22 Feb 2018 20:00:58 +0100
Mikael Magnusson <mikachu@gmail.com> 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


  parent reply	other threads:[~2018-02-22 19:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180222072350epcas2p3185ca17f5f0e3ad69b0a41dbf743f145@epcas2p3.samsung.com>
2018-02-22  7:23 ` wumingxwk
2018-02-22  9:37   ` Peter Stephenson
2018-02-22 10:32     ` Peter Stephenson
2018-02-22 16:50       ` Mikael Magnusson
2018-02-22 17:26         ` Peter Stephenson
2018-02-22 19:00           ` Mikael Magnusson
2018-02-22 19:04             ` Bart Schaefer
2018-02-22 19:34             ` Peter Stephenson [this message]
2018-02-24  8:20               ` Stephane Chazelas
2018-02-24  9:51                 ` Peter Stephenson
2018-02-24 19:41                   ` Peter Stephenson
2019-04-27  6:46                 ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180222193423.16d0bf46@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).