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

Re: ash/echo/POSIX/SUS



On Sun, Oct 31, 1999 at 11:13:09AM +1100, Craig Sanders wrote:
> note that "echo -n" is not a compatible extension because it changes
> the behaviour of echo (which is basically defined as "ignore all
> -options, just print every arg to stdout").

That's not what POSIX says, you must be remembering some other standard.

The only option POSIX requires echo to ignore is "--".

All other options are optional.

<quote>
 4.19.3  Options

 The echo utility shall not recognize the -- argument in the manner
 specified by utility syntax guideline 10 in 2.10.2; -- shall be
 recognized as a string operand.

 Implementations need not support any options.
</quote>

-- 
Raul


Reply to: