News for hackers. Stuff that matters.
Re:Fix the unit test and open a giant hole everywhere by div72 on Saturday December 25, 2021 @09:46AM (#29683712)
I am not exactly sure if parent's code execute the way you think it does. path is provided as an argument to mkdir -p, even if you set path to be a string with 20 arguments copied from your shell, it'll get passed as one.

I assume you meant something like subprocess.run(['mkdir', '-p', '--', *path.split()]), which in that case using shlex.split will fix your problems with quoted strings.

There are no comments on this comment yet.