3 ms·
Yes, though I prefer: echo ... The reason is that you'll see expanded variables and wildcards before commiting to them.
by mixmastamyk 8y ago
Yes, though I prefer: echo ...
The reason is that you'll see expanded variables and wildcards before commiting to them.
- rcthompson 8y agoBut prefixing with echo only disables the first command in a pipeline, while commenting it disables the whole thing.
- groestl 8y agoIt 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 8y agoYou can move the echo to the part you are currently working on.