about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-30 21:38:54 +0000
committerbors <bors@rust-lang.org>2023-09-30 21:38:54 +0000
commitca62d2c445628587660ae48013f460b08b1f5552 (patch)
tree827ca0be4ae4023bddc5d3951521dcff69877765
parent2f89c414f2e3a05f104012b860c27338258f5382 (diff)
parentea026f93d696c321df3c4e397046ae72a2a9d283 (diff)
downloadrust-ca62d2c445628587660ae48013f460b08b1f5552.tar.gz
rust-ca62d2c445628587660ae48013f460b08b1f5552.zip
Auto merge of #116160 - MaxHearnden:quote-syntax-check, r=Mark-Simulacrum
quote argument to sh -n

This prevents glob expansion (*.py) and field splitting
-rwxr-xr-xx2
1 files changed, 1 insertions, 1 deletions
diff --git a/x b/x
index d967988e1c4..ef3eb8b04b4 100755
--- a/x
+++ b/x
@@ -8,7 +8,7 @@
 set -eu
 
 # syntax check
-sh -n $0
+sh -n "$0"
 
 realpath() {
     if [ -d "$1" ]; then