Skip to contentSkip to conversation

Broken quoting in bb.utils.remove()

DISCUSSION Enrico Scholz 1 participant 1 message Feb 18, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

commit 96088ebdec08e49ba9e8dbcac437bfcdc21f5983 causes unwanted effects when path contains special shell chars like whitespaces, '$', ';' or '\'.

Something like

- subprocess.call("rm -rf %s" % path, shell=True)
+ subprocess.call(['rm', '-rf'] + glob.glob(path), shell=False)

would restore previous behavior.

Enrico