aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:37:55 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-03 00:37:55 +1300
commitcb6672ace4d641cc4308a5eeb200e35e6559f03a (patch)
treed9897f73c8aa219c0f0e3fe6a9b741302568c267 /bin
parentSplit ~/.shrc off stub ~/.shinit file (diff)
downloaddotfiles-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')
-rw-r--r--bin/mftl.awk2
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]
}