digitalcourage.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Diese Instanz wird betrieben von Digitalcourage e.V. für die Allgemeinheit. Damit wir das nachhaltig tun können, erheben wir einen jährlichen Vorausbeitrag von 1€/Monat per SEPA-Lastschrifteinzug.

Server stats:

856
active users

Peter Kahlert

If a friend was about to learn 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 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.)

www.shellcheck.netShellCheck – shell script analysis toolShellCheck finds bugs in your shell scripts

@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 :blobcatcoffee:

@tennoseremel Ok. You're starting to make me scared xD