Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, though I prefer: echo ...

The reason is that you'll see expanded variables and wildcards before commiting to them.



But prefixing with echo only disables the first command in a pipeline, while commenting it disables the whole thing.


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.


You can move the echo to the part you are currently working on.




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

Search: