Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

One should avoid echo anyway due to portability issues. Use printf instead.


More *nix systems have a /bin/echo than /bin/printf or /usr/bin/printf


Yes, and they all do something dfferent. Things like "-e" and treatment of "\c" are not uniform.

If a system has printf, and I think all recent Unix-like systems do, then it works at least 98% the same.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: