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

https://refp.se/articles/your-shell-and-the-magic-colon

37 points · 4 comments · view on lemmy.world

4 Comments

FizzyOrange@programming.dev · 7 pts · 20d (1 reply)

If you find yourself reaching for this feature it probably means your Bash script has reached the level of complexity where you should absolutely not be using Bash. Use a real programming language instead.

Vulwsztyn@programming.dev · 0 pts · 16d

nah, a script with one param can totally be a bash script

pelya@lemmy.world · 6 pts · 20d

You can write true instead of : and it will look better, true is an actual command.

terranoid@lemmy.cafe · 4 pts · 20d

Filed away in my colon