Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mixmastamyk
on Oct 24, 2018
|
parent
|
context
|
favorite
| on:
Show HN: Ultimate Plumber – a tool for writing Lin...
Yes, though I prefer: echo ...
The reason is that you'll see expanded variables and wildcards before commiting to them.
rcthompson
on Oct 24, 2018
[–]
But prefixing with echo only disables the first command in a pipeline, while commenting it disables the whole thing.
groestl
on Oct 24, 2018
|
parent
|
next
[–]
It also executes command and process substitutions, opens files etc. But granted, it's a useful trick in some cases, after passing the fat-fingering stage.
mixmastamyk
on Oct 24, 2018
|
parent
|
prev
[–]
You can move the echo to the part you are currently working on.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The reason is that you'll see expanded variables and wildcards before commiting to them.