Re: [dev] sbase echo.c doesn't respect POSIX

From: FRIGN <>
Date: Fri, 3 Apr 2015 13:29:41 +0200

On Fri, 3 Apr 2015 08:19:19 -0300
Prog Rider <> wrote:

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

Hey Prog (?),

we read the POSIX spec very closely. The general idea is that the -- should
not be interpreted for utilities that have no flags.
Echo in its basic form has no flags (as specified by POSIX), but we added
the -n flag.
For the sake of consistency, as echo(1) now is a tool accepting flags,
we decided to drop the behaviour specified by POSIX, but are very well aware
this is a difficult matter of discussion.



Received on Fri Apr 03 2015 - 13:29:41 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 03 2015 - 13:36:07 CEST