echo -n does not work as expected - OS X
Users browsing this thread: 1 Guest(s)
|
|||
If the manpage on Mac OS does not mention the -n. it could be that /bin/echo would behave properly if you try that. However most (if not all?) shell implement echo as a builtin command. and especially bash which is the default shell on Mac OS iirc. So when you call "echo", you effectively call the bash builtin which features a ton of new flags for the echo command. As phillbush and OpenBSD put it, use printf when portability is an issue (echo is considered broken and deprecated in many places).
|
|||
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 seninha - 17-04-2020, 05:30 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 seninha - 17-04-2020, 05:40 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
|