A shell colon does nothing. Use it anyway

I've written more shell scripts than I can count, but I still stumble upon tricks that honestly blow my mind far too often than I care to admit. Latest thing that blew my head clean off? The shell colon.
391 points by olexsmir 88 days ago refp.se 171 comments

Summary

The shell colon is a simple but often overlooked tool in scripting that can help streamline your code. Discover how this seemingly useless command can actually enhance your shell scripts in unexpected ways.

Comments (171 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open