diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-09 05:26:58 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-09 05:26:58 +0000 |
commit | 5e8d83d1f6dc8c306fcc6009beeab6acebab7631 (patch) | |
tree | 2fa49179afa30a937a02b16df039ab841a405c11 | |
parent | 5ddc27bae58fbe8b387bed73673a1bca197978e6 (diff) | |
download | busybox-w32-5e8d83d1f6dc8c306fcc6009beeab6acebab7631.tar.gz busybox-w32-5e8d83d1f6dc8c306fcc6009beeab6acebab7631.tar.bz2 busybox-w32-5e8d83d1f6dc8c306fcc6009beeab6acebab7631.zip |
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
-rw-r--r-- | editors/awk.c | 2 |
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: | |||
2370 | 2370 | ||
2371 | case F_sy: | 2371 | case F_sy: |
2372 | fflush(NULL); | 2372 | fflush(NULL); |
2373 | R.d = (L.s && *L.s) ? system(L.s) : 0; | 2373 | R.d = (L.s && *L.s) ? (system(L.s) >> 8) : 0; |
2374 | break; | 2374 | break; |
2375 | 2375 | ||
2376 | case F_ff: | 2376 | case F_ff: |