3 ms·
I used a distro in recent memory where `echo -n foo` really produced `-n foo`. The workaround was `printf "%s" foo`.
by mappu 7y ago
I used a distro in recent memory where `echo -n foo` really produced `-n foo`.
The workaround was `printf "%s" foo`.
- fwip 7y agoAh yeah, posix doesn't require -n to do anything in particular. For most use cases, strict adherence to posix compatibility isn't important, but sometimes it really really is.