Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Document echo \c behaviour



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