Y
Hacker News
new
|
ask
|
show
|
jobs
by
philjackson
1994 days ago
Useless use of echo there.
5 comments
x0
1994 days ago
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.
link
ttul
1994 days ago
Not unless you’re also trying to demonstrate the magic of fork.
link
techbio
1994 days ago
Extraneously strenuous use of "useless" when using "redundant" would have done...unless useless has another usage.
EDIT: The commenter echoed, duckly.
link
watersb
1994 days ago
I use a construct like this to ensure that the value ends with a newline.
link
smorrow
1993 days ago
$() chomps the newline though...
link
lozf
1994 days ago
noted, thanks
link