aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGravatar Rob Landley <rob@landley.net>2006-01-09 05:26:58 +0000
committerGravatar Rob Landley <rob@landley.net>2006-01-09 05:26:58 +0000
commit5184336647d29624cfc24751360d502a2044ca58 (patch)
tree2fa49179afa30a937a02b16df039ab841a405c11 /editors
parentfb8c4983a6ef4128660f7db35a2e491a01ddc722 (diff)
downloadbusybox-5184336647d29624cfc24751360d502a2044ca58.tar.gz
busybox-5184336647d29624cfc24751360d502a2044ca58.tar.bz2
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.
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c2
1 files changed, 1 insertions, 1 deletions
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: