diff options
author | Brian Behlendorf <[email protected]> | 2021-04-15 08:53:08 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-15 08:53:08 -0700 |
commit | c95c5176b6a38ed5e84bcbb621e99b2d8599fb07 (patch) | |
tree | 323065bc0c7743bcaf508d68ac29d489451ab8d5 /Makefile.am | |
parent | 96904d879cc0a8ec3485806150a7e0311aa907bd (diff) |
Fix 'make checkbashisms` warnings
The awk command used by the checkbashisms target incorrectly
adds the escape character before the ! and # characters. This
results in the following warnings because these characters do not
need to be escaped.
awk: cmd. line:1: warning: regexp escape sequence
`\!' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence
`\#' is not a known regexp operator
Remove the unneeded escape character before ! and #.
Valid escape sequences are:
https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #11902
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index dd48b4a2c..30c61dda2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -161,7 +161,7 @@ checkbashisms: -o -name '90zfs' -prune \ -o -type f ! -name 'config*' \ ! -name 'libtool' \ - -exec sh -c 'awk "NR==1 && /\#\!.*bin\/sh.*/ {print FILENAME;}" "{}"' \;); \ + -exec sh -c 'awk "NR==1 && /#!.*bin\/sh.*/ {print FILENAME;}" "{}"' \;); \ else \ echo "skipping checkbashisms because checkbashisms is not installed"; \ fi |