diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-05 15:10:57 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-05 15:11:11 +1300 |
commit | 7017d0add37bedd6283114470e40598c15a95923 (patch) | |
tree | 1ce8f0d79baeb2387e2ae1e1acc4383a30e16074 /bin | |
parent | Remove shebang from source awk file (diff) | |
download | dotfiles-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')
-rw-r--r-- | bin/gwp.awk | 2 |
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 |