[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

From: Chet Ramey
Subject: Re: [PATCH] Adding support for '--' in builtin echo's option parsing.
Date: Mon, 01 Apr 2013 15:48:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 4/1/13 3:32 PM, Dave Rutherford wrote:

>> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html says:
>>     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.
> Perhaps this is worth adjusting unless POSIXLY_CORRECT?

It's not; echo has never behaved this way.  Any code that would use
`echo --' is, by definition, new code and new code should use printf.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]