Fix 'make checkbashisms` warnings
commitc95c5176b6a38ed5e84bcbb621e99b2d8599fb07
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Apr 2021 15:53:08 +0000 (15 08:53 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 15:53:08 +0000 (15 08:53 -0700)
tree323065bc0c7743bcaf508d68ac29d489451ab8d5
parent96904d879cc0a8ec3485806150a7e0311aa907bd
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 <mail@gmelikov.ru>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11902
Makefile.am