From 5184336647d29624cfc24751360d502a2044ca58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 9 Jan 2006 05:26:58 +0000 Subject: [PATCH] Bug 112, return value of awk should be /256. In reality, we should probably be using WEXITSTATUS(), but until I can figure out why the heck that would want to do (*(int *) &(status)) on the value, I'm happy just fixing the bug we actually see. --- editors/awk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/awk.c b/editors/awk.c index cb54d2597..4bd872924 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -2370,7 +2370,7 @@ re_cont: case F_sy: fflush(NULL); - R.d = (L.s && *L.s) ? system(L.s) : 0; + R.d = (L.s && *L.s) ? (system(L.s) >> 8) : 0; break; case F_ff: