From 7017d0add37bedd6283114470e40598c15a95923 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 5 Dec 2016 15:10:57 +1300 Subject: Use explicit range for alphanumeric characters This accommodates mawk 1.2, which doesn't implement the character ranges, even though POSIX tells it to. I remember geirha mentioning in #bash that mawk is broken. *sigh* --- bin/gwp.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/gwp.awk b/bin/gwp.awk index d5be856f..25782318 100644 --- a/bin/gwp.awk +++ b/bin/gwp.awk @@ -5,7 +5,7 @@ BEGIN { self = "gwp" # Words are separated by any non-alphanumeric character - FS = "[^[:alnum:]]" + FS = "[^a-zA-Z0-9]" # First argument is the word required; push its case downward so we can # match case-insensitively -- cgit v1.2.3