echo -n does not work as expected - OS X

Users browsing this thread: 1 Guest(s)
jkl
Long time nixers
(In zsh:)

Code:
$ echo -n 123
123%
$ sh
$ echo -n 123
-n 123

Why? ... And is there a way to make sh on macOS follow the standard so I can make my scripts portable?

--
<mort> choosing a terrible license just to be spiteful towards others is possibly the most tux0r thing I've ever seen


Messages In This Thread
echo -n does not work as expected - by jkl - 17-04-2020, 05:26 PM
RE: echo -n does not work as expected - by jkl - 17-04-2020, 05:36 PM
RE: echo -n does not work as expected - by z3bra - 20-04-2020, 05:35 AM
RE: echo -n does not work as expected - by jkl - 20-04-2020, 07:04 AM