From e2051a61e02c95e71721b1c0e6671a3373edcc85 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 18 Sep 2018 18:15:27 +0200 Subject: [PATCH] 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 --- syntax/sh.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/sh.nanorc b/syntax/sh.nanorc index 6c86683f..6342b36c 100644 --- 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 "#"