commit e2051a61e02c95e71721b1c0e6671a3373edcc85
parent a8fa0a82c40b25a82fd395122ea8da2d7d313680
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 18 Sep 2018 18:15:27 +0200
syntax: sh: let the header regex match also busybox shell scripts
And recognize calls via 'env' too.
This addresses https://savannah.gnu.org/bugs/?54674.
Reported-by: Aaron Sears <geodelic@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc
@@ -1,7 +1,7 @@
## Here is an example for Bourne shell scripts.
syntax sh "(\.sh|\.(a|ba|c|da|k|mk|pdk|tc|z)(sh|shrc|sh_profile)|/(etc/|\.)profile)$"
-header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|openrc-run|runscript)"
+header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|(busybox|env) +sh|openrc-run|runscript)"
magic "(POSIX|Bourne-Again) shell script.*text"
linter dash -n
comment "#"