summaryrefslogtreecommitdiff
path: root/sys/src/cmd/awk/parse.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-08-12 21:34:06 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-08-12 21:34:06 +0200
commit9cf3dc9a259cadc80e6d3840c658ef1d5f7c94a4 (patch)
tree3ae416813cb7631de1c27a74f8cc35ae5686c356 /sys/src/cmd/awk/parse.c
parent3f9d5e4a4f9e4f0b5fe66e4a6745a4b8c5f6e447 (diff)
awk: allow string as exit status
Diffstat (limited to 'sys/src/cmd/awk/parse.c')
-rw-r--r--sys/src/cmd/awk/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/awk/parse.c b/sys/src/cmd/awk/parse.c
index 3e42d2ba7..4ebbd671d 100644
--- a/sys/src/cmd/awk/parse.c
+++ b/sys/src/cmd/awk/parse.c
@@ -217,7 +217,7 @@ Node *linkum(Node *a, Node *b)
{
Node *c;
- if (errorflag) /* don't link things that are wrong */
+ if (exitstatus != nil) /* don't link things that are wrong */
return a;
if (a == nil)
return(b);