Something as simple as echo is not even correctly standardized. How echo is defi...

@meluzzy@woof.tech

Something as simple as echo is not even correctly standardized.

How echo is defined in the spec:
OPTIONS: Implementations shall not support any options. Character sequences shall be recognized.

dash's echo: Always interprets escapes, has no flags, 'echo -e' prints '-e'. Everything correct so far.
bash's echo: Doesn't interpret escapes by default (has -E by default), can escape with -e.
zsh's echo: Always interprets escapes, (has -e by default), can avoid escape with -E. However 'command echo' behaves like bash's echo.
ksh93's echo: Doesn't interpret escapes by default, can do with -e, but 'echo -E' just prints '-E'.
mksh's echo: Always interprets escapes, (has -e by default), can avoid escaping with -E. But 'command echo' changes nothing. You need -E to not escape and -e to escape.
#unix #linux