aboutsummaryrefslogtreecommitdiff
path: root/system/pdksh/patches/110_Debian-exit-negative-number.patch
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2010-11-10 22:15:55 -0600
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-11-22 19:44:10 +0100
commita208cc7bde7a9841e88840e64886f859b523ccd3 (patch)
treeb87d285dd71481324b3f68a355fe10956e185c38 /system/pdksh/patches/110_Debian-exit-negative-number.patch
parent6e55b80a3c5f74f63f5152c929b4bf272081b112 (diff)
system/pdksh: Removed (use system/ksh instead)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/pdksh/patches/110_Debian-exit-negative-number.patch')
-rw-r--r--system/pdksh/patches/110_Debian-exit-negative-number.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/system/pdksh/patches/110_Debian-exit-negative-number.patch b/system/pdksh/patches/110_Debian-exit-negative-number.patch
deleted file mode 100644
index d7af113275..0000000000
--- a/system/pdksh/patches/110_Debian-exit-negative-number.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Fix problem with `exit -1' giving `ksh: exit: -1: unknown option' (see bug#502934)
-
-Index: pdksh-5.2.14/c_sh.c
-===================================================================
---- pdksh-5.2.14.orig/c_sh.c 2009-09-19 11:38:39.000000000 +0200
-+++ pdksh-5.2.14/c_sh.c 2009-09-19 11:39:33.000000000 +0200
-@@ -534,9 +534,14 @@
- int n;
- char *arg;
-
-- if (ksh_getopt(wp, &builtin_opt, null) == '?')
-- return 1;
-- arg = wp[builtin_opt.optind];
-+ if (!Flag(FPOSIX) // not posix
-+ && *wp && *(wp + 1) && !*(wp + 2)) // only one argument passed
-+ arg=*(wp + 1); // code regardless of starting with '-' or not
-+ else {
-+ if (ksh_getopt(wp, &builtin_opt, null) == '?')
-+ return 1;
-+ arg = wp[builtin_opt.optind];
-+ }
-
- if (arg) {
- if (!getn(arg, &n)) {
-Index: pdksh-5.2.14/tests/debian-110.t
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ pdksh-5.2.14/tests/debian-110.t 2009-09-19 11:41:59.000000000 +0200
-@@ -0,0 +1,17 @@
-+name: debian-110-1
-+description:
-+ Check if exit -1 is allowed for ! posix
-+stdin:
-+ (set +o posix; exit -1); echo A $?
-+expected-stdout:
-+ A 255
-+---
-+name: debian-110-2
-+description:
-+ Check if exit -1 is not allowed for posix
-+stdin:
-+ (set -o posix; exit -1); echo A $?
-+expected-stdout:
-+ A 1
-+expected-fail: yes
-+---