From 5e8d83d1f6dc8c306fcc6009beeab6acebab7631 Mon Sep 17 00:00:00 2001 From: landley Date: Mon, 9 Jan 2006 05:26:58 +0000 Subject: 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. git-svn-id: svn://busybox.net/trunk/busybox@13198 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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: -- cgit v1.2.3-55-g6feb