diff options
author | Daniel LEVAI <leva@ecentrum.hu> | 2010-11-10 22:15:55 -0600 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2010-11-22 19:44:10 +0100 |
commit | a208cc7bde7a9841e88840e64886f859b523ccd3 (patch) | |
tree | b87d285dd71481324b3f68a355fe10956e185c38 /system/pdksh/patches/112_OpenBSD-test.patch | |
parent | 6e55b80a3c5f74f63f5152c929b4bf272081b112 (diff) | |
download | slackbuilds-a208cc7bde7a9841e88840e64886f859b523ccd3.tar.gz |
system/pdksh: Removed (use system/ksh instead)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/pdksh/patches/112_OpenBSD-test.patch')
-rw-r--r-- | system/pdksh/patches/112_OpenBSD-test.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/system/pdksh/patches/112_OpenBSD-test.patch b/system/pdksh/patches/112_OpenBSD-test.patch deleted file mode 100644 index 7058a2dac8..0000000000 --- a/system/pdksh/patches/112_OpenBSD-test.patch +++ /dev/null @@ -1,58 +0,0 @@ -From OpenBSD: - -2009-03-01 21:11 otto - - * c_test.c (1.18): Fix PR #723: test(1) operator precedence - inconsistent with POSIX Make sure ksh builtin test and test(1) do - not differ. From Christiano Farina Haesbaert. ok miod@ - - -Index: pdksh-5.2.14/c_test.c -=================================================================== ---- pdksh-5.2.14.orig/c_test.c 2009-09-19 11:22:39.000000000 +0200 -+++ pdksh-5.2.14/c_test.c 2009-09-19 12:03:25.000000000 +0200 -@@ -551,15 +551,23 @@ - } - return res; - } -- if ((op = (Test_op) (*te->isa)(te, TM_UNOP))) { -- /* unary expression */ -- opnd1 = (*te->getopnd)(te, op, do_eval); -- if (!opnd1) { -- (*te->error)(te, -1, "missing argument"); -- return 0; -- } -+ /* -+ * Binary should have precedence over unary in this case -+ * so that something like test \( -f = -f \) is accepted -+ */ -+ if ((te->flags & TEF_DBRACKET) || (&te->pos.wp[1] < te->wp_end && -+ !test_isop(te, TM_BINOP, te->pos.wp[1]))) { -+ if ((op = (Test_op) (*te->isa)(te, TM_UNOP))) { -+ /* unary expression */ -+ opnd1 = (*te->getopnd)(te, op, do_eval); -+ if (!opnd1) { -+ (*te->error)(te, -1, "missing argument"); -+ return 0; -+ } - -- return (*te->eval)(te, op, opnd1, (const char *) 0, do_eval); -+ return (*te->eval)(te, op, opnd1, (const char *) 0, -+ do_eval); -+ } - } - opnd1 = (*te->getopnd)(te, TO_NONOP, do_eval); - if (!opnd1) { -Index: pdksh-5.2.14/tests/debian-112.t -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ pdksh-5.2.14/tests/debian-112.t 2009-09-19 12:06:33.000000000 +0200 -@@ -0,0 +1,8 @@ -+name: debian-112-1 -+description: -+ Check test operator precedence -+stdin: -+ test \( -f = -f \) && echo OK -+expected-stdout: -+ OK -+--- |