Shell Scripting Article Explores Rarely-Known Colon Operator

An article on refp.se explores the shell colon operator, a programming technique that performs no operation but can still be used in shell scripts. The piece has circulated on both Lobsters and Hacker News frontpage.

2 reportsother · tech

Claim audit

No BS check run yet — press ⚖ to extract this story's claims and verify them against independent sources.

All coverage

A shell colon does nothing. Use it anyway. | Filip Roséen - refp.se

stream:bsky-jetstreamother66d ago kagi ↗

A shell colon does nothing. Use it anyway https://lobste.rs/s/eidh3u #programming 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.