dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harald van Dijk <harald@gigawatt.nl>
To: Mihail Konev <k.mvc@ya.ru>, dash@vger.kernel.org
Subject: Re: [PATCH] builtin: Fix 'echo --' handling
Date: Sun, 18 Dec 2016 21:28:52 +0100	[thread overview]
Message-ID: <a558fca9-1a50-8258-aa37-f1eee0b96f66@gigawatt.nl> (raw)
In-Reply-To: <20161218201606.GA19607@localhost>

On 18/12/2016 21:16, Mihail Konev wrote:
> Ignore first "--", as the end of options.

echo -- is required by POSIX to print --. To quote:

 > The echo utility shall not recognize the "--" argument in the manner 
specified by Guideline 10 of XBD Utility Syntax Guidelines; "--" shall 
be recognized as a string operand.

Scripts wishing to print the text "-n" without anything else must find 
some other way, for example using the printf command.

Cheers,
Harald van Dijk

      reply	other threads:[~2016-12-18 20:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-18 20:16 Mihail Konev
2016-12-18 20:28 ` Harald van Dijk [this message]

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=a558fca9-1a50-8258-aa37-f1eee0b96f66@gigawatt.nl \
    --to=harald@gigawatt.nl \
    --cc=dash@vger.kernel.org \
    --cc=k.mvc@ya.ru \
    --subject='Re: [PATCH] builtin: Fix '\''echo --'\'' handling' \
    /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

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).