News for hackers. Stuff that matters.
Re:Why Create a New Unix Shell? by wutbrodo on Wednesday January 31, 2018 @04:30PM (#16277722)
That was my main pain initially after I finally switched away from writing my scripts in Bash, but it actually turned out to be pretty easy. I wrote a quick helper function that does 99% of what I need:

def _call(cmd_str): return subprocess.check_output(shlex.split(cmd_str)).decode("utf-8")

Definitely a verbose monstrosity compared to doing it in bash, but more than worth avoiding the garbage fire that is Bash. And it only works for simple cases

Re:Why Create a New Unix Shell? by _mhr_ on Wednesday January 31, 2018 @08:41PM (#16279126)
Thank you for this.