diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-03 00:37:55 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-03 00:37:55 +1300 |
commit | cb6672ace4d641cc4308a5eeb200e35e6559f03a (patch) | |
tree | d9897f73c8aa219c0f0e3fe6a9b741302568c267 /bin/mftl.awk | |
parent | Split ~/.shrc off stub ~/.shinit file (diff) | |
download | dotfiles-cb6672ace4d641cc4308a5eeb200e35e6559f03a.tar.gz dotfiles-cb6672ace4d641cc4308a5eeb200e35e6559f03a.zip |
Escape slash in mftl(1df) to soothe NetBSD awk(1)
/usr/bin/awk: nonterminated character class ^[a-zA-Z0-9][a-zA-Z0
source line number 31 source file /sdf/udd/t/tejr/.local/bin/mftl
context is
if ($i ~ >>> /^[a-zA-Z0-9][a-zA-Z0-9./ <<<
Diffstat (limited to 'bin/mftl.awk')
-rw-r--r-- | bin/mftl.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mftl.awk b/bin/mftl.awk index 163857bf..f210de33 100644 --- a/bin/mftl.awk +++ b/bin/mftl.awk @@ -27,7 +27,7 @@ BEGIN { # inference rules and stack them up into an array's keys to keep them # unique; this probably needs refinement for (i = 1; i < NF; i++) - if ($i ~ /^[a-zA-Z0-9][a-zA-Z0-9./_-]*$/) + if ($i ~ /^[a-zA-Z0-9][a-zA-Z0-9.\/_-]*$/) ats[$i] } |