From ea026f93d696c321df3c4e397046ae72a2a9d283 Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Mon, 25 Sep 2023 20:22:20 +0100 Subject: [PATCH] quote argument to sh -n This prevents glob expansion (*.py) and field splitting --- x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x b/x index d967988e1c44b..ef3eb8b04b4bf 100755 --- a/x +++ b/x @@ -8,7 +8,7 @@ set -eu # syntax check -sh -n $0 +sh -n "$0" realpath() { if [ -d "$1" ]; then