Follow

@victorhck Given things like BashFAQ's explanation of how flaky set -e is (mywiki.wooledge.org/BashFAQ/10) and how much of a pain it is to get everything just right for portability with bash, I've taken to just rewriting shell scripts longer than "cd to the directory containing the game, then exec it" in Python.

Aside from the niceties of having sane whitespace handling and variable substitution, try/finally, and stuff like os.walk, os.path.normpath, shlex, and subprocess, its presence is basically a de facto standard for non-Windows platforms at this point, as well as being easier to write in a manner that's portable to Windows.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.