generic/001: remove unnecessary backslash
diff mbox series

Message ID 20191009053434.19369-1-jencce.kernel@gmail.com
State New
Headers show
Series
  • generic/001: remove unnecessary backslash
Related show

Commit Message

Murphy Zhou Oct. 9, 2019, 5:34 a.m. UTC
Awk 5.0.1 is complaining about this backslash and causing false alarm
like this:
    warning: regexp escape sequence '\#' is not a known regexp operator

This fix works fine with Awk 3.1.7 , 4.0.2 , 4.2.1 and 5.0.1. This
backslash is not necessary.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
---
 tests/generic/001 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig Oct. 9, 2019, 7 a.m. UTC | #1
On Wed, Oct 09, 2019 at 01:34:34PM +0800, Murphy Zhou wrote:
> Awk 5.0.1 is complaining about this backslash and causing false alarm
> like this:
>     warning: regexp escape sequence '\#' is not a known regexp operator
> 
> This fix works fine with Awk 3.1.7 , 4.0.2 , 4.2.1 and 5.0.1. This
> backslash is not necessary.
> 
> Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

Patch
diff mbox series

diff --git a/tests/generic/001 b/tests/generic/001
index 046e54e3..3a047754 100755
--- a/tests/generic/001
+++ b/tests/generic/001
@@ -177,7 +177,7 @@  _chain()
 {
     $AWK_PROG -v full_file=$seqres.full -v verify=$verify <$tmp.config '
 BEGIN	{ nfile = 0 }
-/^\#/	{ next }
+/^#/	{ next }
 	{ file[nfile] = $1
 	  size[nfile] = $2
 	  link[nfile] = 0