Skip to content

Commit ee7130b

Browse files
committed
[NFC][not.py] Making escaping of argv more consistent. Addressing PR swiftlang#23578.
In swiftlang#23578, @jrose-apple gave some comments on correctness of argument concatenation in regards to not.py. The PR merged before I was able to address those changes.
1 parent dd40c70 commit ee7130b

File tree

1 file changed

+1
-1
lines changed
  • test/PlaygroundTransform/Inputs

1 file changed

+1
-1
lines changed

test/PlaygroundTransform/Inputs/not.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
sys.exit(0)
88

99
try:
10-
subprocess.check_call(shlex.split(' '.join(sys.argv[1:])))
10+
subprocess.check_call(shlex.split(sys.argv[1]))
1111
sys.exit(1)
1212
except subprocess.CalledProcessError as e:
1313
sys.exit(0)

0 commit comments

Comments
 (0)