3 ms·
"echo -n" will omit the trailing newline, on both Linux and BSD. echo -n with no other arguments therefore outputs literally nothing. (Except for the "echo" bu
by LeoPanthera 7y ago
"echo -n" will omit the trailing newline, on both Linux and BSD. echo -n with no other arguments therefore outputs literally nothing.
(Except for the "echo" builtin in /bin/sh, which does not recognise -n.)
- teddyh 7y agoDebian GNU/Linux guarantees that the echo builtin, even in /bin/sh, supports the -n option: https://www.debian.org/doc/debian-policy/ch-files.html#scripts https://www.debian.org/doc/debian-policy/ch-files.html#scrip...