Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Document echo \c behaviour
- X-seq: zsh-workers 40319
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- Subject: Re: [PATCH] Document echo \c behaviour
- Date: Tue, 10 Jan 2017 03:52:59 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=4rfNPDD0qFshXk2bqmXw0Iie0Ec=; b=U9S/v/JBCqwXEmnGxHI8o QHftLuBQIcevqmipsUHES7++ZSpfmUub76gcC2o6QAMafSTaHOv4hTXgWMd3szFV qRcBxUYDuSOMRcSS6L0tyWZk3H55bC819kyjmHzPL6DsPyCE5xyGz3uzsHxzTBlm aBA1J62wcbXstu3lRVa1XA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=4rfNPDD0qFshXk2bqmXw0Iie0Ec=; b=W+ijsEXYRpJynIw4GEAd RNkL6bRIV38S/valGCwamrV1Wmg2lluBoF+5KJsjv0zVEHCf/6/Za7vd3bqupr3U Ib/z0FoAxQqXBM6FKqnPmyKR0XUmC101R/MEHvAmCfMx4uo7E4E47JuereGB8xwI 5qABJBLHSLt1Yx6yP6bbeMM=
- In-reply-to: <20170109203209.GA13324@breadbox.private.spodhuis.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20170109203209.GA13324@breadbox.private.spodhuis.org>
Phil Pennock wrote on Mon, Jan 09, 2017 at 15:32:09 -0500:
> SUSv4 XCU at <http://pubs.opengroup.org/onlinepubs/9699919799/> states:
That's the landing page; 'echo' is at
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
> > \c
> > Suppress the <newline> that otherwise follows the final argument in
> > the output. All characters following the '\c' in the arguments shall
> > be ignored.
>
> I think that this is worth documenting. Patch tested with "make" in
> Doc/ and results look fine.
Thanks; I pushed the first hunk. I didn't push the second one because
I don't think it's required. If you disagree then make your case ;-).
Thanks for the patch!
Daniel
P.S. Overly-literal-reading corner: doesn't "All characters following...
will be ignored" mean that «echo 'foo\cbar' 'baz' 'qux'» should be
equivalent to «echo 'foo\cbar' '' ''»? I.e., print «foo» followed by
two trailing spaces?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author