Skip to content

Commit ca62d2c

Browse files
committed
Auto merge of rust-lang#116160 - MaxHearnden:quote-syntax-check, r=Mark-Simulacrum
quote argument to sh -n This prevents glob expansion (*.py) and field splitting
2 parents 2f89c41 + ea026f9 commit ca62d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -eu
99

1010
# syntax check
11-
sh -n $0
11+
sh -n "$0"
1212

1313
realpath() {
1414
if [ -d "$1" ]; then

0 commit comments

Comments
 (0)