Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
philjackson
· 5y ago · 0 comments
Useless use of echo there.
Comments
[–]
x0
5y 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.
[–]
ttul
5y ago
Not unless you’re also trying to demonstrate the magic of fork.
[–]
techbio
5y ago
Extraneously strenuous use of "useless" when using "redundant" would have done...unless useless has another usage.
EDIT: The commenter echoed, duckly.
[–]
watersb
5y ago
I use a construct like this to ensure that the value ends with a newline.
[–]
smorrow
5y ago
$() chomps the newline though...
[–]
lozf
5y ago
noted, thanks