summaryrefslogtreecommitdiff
path: root/x
diff options
context:
space:
mode:
authorMaxHearnden <MaxHearnden@users.noreply.github.com>2023-09-25 20:22:20 +0100
committerGitHub <noreply@github.com>2023-09-25 20:22:20 +0100
commitea026f93d696c321df3c4e397046ae72a2a9d283 (patch)
treeca1094560270ea0d6f08379c00722004b2877707 /x
parent1cbfeabfa9fb688cd5d2b8faf7ef2de8ab38dd9d (diff)
quote argument to sh -n
This prevents glob expansion (*.py) and field splitting
Diffstat (limited to 'x')
-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