On 2019-08-14 05:01, Harald Dunkel wrote:
I just learned by accident that
/bin/echo -- $var
Shouldn't it be just
According to POSIX, echo doesn't take options. It is specified
that "Implementations shall not support any options."
(We have options, though, so things are complicated.)
Furthermore, the specification explicitly speaks of -- thusly:
"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."