Hacker News new | past | comments | ask | show | jobs | submit login

Useless use of echo there.



It's very important to watch out for useless uses of echo/cat. What is cat, a few megabytes now? Fine for those of us on modern hardware, but you never know what PDP-11 user is going to copy paste your comment into their terminal.


Not unless you’re also trying to demonstrate the magic of fork.


Extraneously strenuous use of "useless" when using "redundant" would have done...unless useless has another usage.

EDIT: The commenter echoed, duckly.


I use a construct like this to ensure that the value ends with a newline.


$() chomps the newline though...


noted, thanks




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: