diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 29b15351d..13df7dfbe 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -179,7 +179,7 @@ else: with open(path, "r") as f: command = self.get_command_ex(file, **options)[0] subprocess.Popen( - ["im=$(cat);" + command + " $im;" "rm -f $im"], shell=True, stdin=f + ["im=$(cat);" + command + " $im; rm -f $im"], shell=True, stdin=f ) os.remove(path) return 1