If a friend was about to learn #Linux Shell, what advise would you have for them?
I'm asking for me. I am that friend.
@PeterKahlert Habitually enclose all variable expansions in double quotes, "${var}", as well as all fixed strings, like
grep "some text" *.md
Use https://www.shellcheck.net/ .
Learn when to stop writing a script and rather start coding in a safe language with muuuch less chances to shoot yourself in the foot. (Says the guy who did it all too often.)
@HaraldKi I'll keep that in mind. Safe language such as Rust or any?
@PeterKahlert Whatever you do, do not write scripts with that if you value your sanity
@tennoseremel Ok. You're starting to make me scared xD
@PeterKahlert Too many “footguns”, IMO