c/programming · by sanitation@lemmy.today · 20dA shell colon does nothing. Use it anyway. | Filip Roséen https://refp.se/articles/your-shell-and-the-magic-colon37 points · 4 comments · view on lemmy.world
4 Comments
FizzyOrange@programming.dev · 7 pts · 20d
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
trueinstead of:and it will look better,trueis an actual command.terranoid@lemmy.cafe · 4 pts · 20d
Filed away in my colon