aboutsummaryrefslogtreecommitdiff
path: root/bin/gwp.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-05 15:10:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-05 15:11:11 +1300
commit7017d0add37bedd6283114470e40598c15a95923 (patch)
tree1ce8f0d79baeb2387e2ae1e1acc4383a30e16074 /bin/gwp.awk
parentRemove shebang from source awk file (diff)
downloaddotfiles-7017d0add37bedd6283114470e40598c15a95923.tar.gz
dotfiles-7017d0add37bedd6283114470e40598c15a95923.zip
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*
Diffstat (limited to 'bin/gwp.awk')
-rw-r--r--bin/gwp.awk2
1 files changed, 1 insertions, 1 deletions
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