Post ALyWLpToIVdOHQCOCO by xmoo@fedi.vern.cc
 (DIR) More posts by xmoo@fedi.vern.cc
 (DIR) Post #ALxf5SZoO8Ln2jJc2q by jaxter184@social.linux.pizza
       2022-07-28T20:25:13Z
       
       0 likes, 0 repeats
       
       This is a bit of a long shot, but does anyone happen to have that comic that floats around every now and then about shell scripts and some magic incantation you can put at the top to prevent it from doing bad things? It talked about stuff like halting the script when an error occurs or not interpreting nonexistent variables as empty strings
       
 (DIR) Post #ALxs5MlTIObGQD3SEq by heh@social.linux.pizza
       2022-07-28T22:50:52Z
       
       0 likes, 0 repeats
       
       @jaxter184 Do you mean this one? https://wizardzines.com/comics/bash-errors/
       
 (DIR) Post #ALxtXLCym8xBeopBXE by jaxter184@social.linux.pizza
       2022-07-28T23:07:08Z
       
       0 likes, 0 repeats
       
       @heh yep, thats the one! someone else found it a little while ago, but thanks for sending the link! i wasnt even expecting one answer, so im pleasantly surprised that i got two
       
 (DIR) Post #ALyG9RhVHdefmxg21Q by olamundo@red.niboe.info
       2022-07-29T03:20:30Z
       
       0 likes, 0 repeats
       
       @jaxter184 just remember:$ set -euo pipefail[ #shell #comic ]
       
 (DIR) Post #ALyWLpToIVdOHQCOCO by xmoo@fedi.vern.cc
       2022-07-29T06:22:02Z
       
       0 likes, 0 repeats
       
       @jaxter184 Not a comic but are you talking about shell check?
       
 (DIR) Post #ALydh2956LfLK2Yqiu by jaxter184@social.linux.pizza
       2022-07-29T07:44:19Z
       
       0 likes, 0 repeats
       
       @xmoo the comic was linked in other replies, but shellcheck is also pretty nice