aboutsummaryrefslogtreecommitdiff
path: root/bin/sec.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:42:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:42:20 +1300
commit1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b (patch)
tree25245f00dce0e694c4b188d1a650a662ad496dec /bin/sec.awk
parentSlightly more idiomatic awk (diff)
downloaddotfiles-1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b.tar.gz
dotfiles-1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b.zip
Use more portable awk stderr write
The fork is a bit ugly, but it's only for printing a single error.
Diffstat (limited to 'bin/sec.awk')
-rw-r--r--bin/sec.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sec.awk b/bin/sec.awk
index 3ebf02b6..001b017d 100644
--- a/bin/sec.awk
+++ b/bin/sec.awk
@@ -6,7 +6,7 @@ BEGIN { FS = ":0*" }
# If no fields, too many fields, or illegal characters, warn, skip line, accrue
# errors
!NF || NF > 3 || /[^0-9:]/ {
- print "sec: Bad format" > "/dev/stderr"
+ print "sec: Bad format" | "cat >&2"
err = 1
next
}