]> git.pld-linux.org Git - packages/ash.git/commitdiff
- patches from rawhide.
authorkloczek <kloczek@pld-linux.org>
Tue, 18 Jul 2000 11:50:21 +0000 (11:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ash-echo.patch -> 1.1
    ash-exit.patch -> 1.1
    ash-fd.patch -> 1.1

ash-echo.patch [new file with mode: 0644]
ash-exit.patch [new file with mode: 0644]
ash-fd.patch [new file with mode: 0644]

diff --git a/ash-echo.patch b/ash-echo.patch
new file mode 100644 (file)
index 0000000..dd6992b
--- /dev/null
@@ -0,0 +1,17 @@
+--- ash-linux-0.2/bltin/echo.c.foo     Sat Sep 11 23:55:02 1999
++++ ash-linux-0.2/bltin/echo.c Sat Sep 11 23:57:48 1999
+@@ -63,7 +63,13 @@
+       if (argc)
+               ap++;
+       if ((p = *ap) != NULL) {
+-              if (equal(p, "-n")) {
++              if (equal(p,"-en") || equal(p,"-ne")) {
++                      nflag++;
++#ifndef eflag
++                      eflag++;
++#endif
++                      ap++;
++              } else  if (equal(p, "-n")) {
+                       nflag++;
+                       ap++;
+               } else if (equal(p, "-e")) {
diff --git a/ash-exit.patch b/ash-exit.patch
new file mode 100644 (file)
index 0000000..dd6845b
--- /dev/null
@@ -0,0 +1,25 @@
+--- ash-linux-0.2/eval.c.exit  Wed Mar 29 15:43:37 2000
++++ ash-linux-0.2/eval.c       Wed Mar 29 15:39:29 2000
+@@ -206,12 +206,14 @@
+               break;
+       case NAND:
+               evaltree(n->nbinary.ch1, EV_TESTED);
++              flags |= EV_TESTED;
+               if (evalskip || exitstatus != 0)
+                       goto out;
+               evaltree(n->nbinary.ch2, flags);
+               break;
+       case NOR:
+               evaltree(n->nbinary.ch1, EV_TESTED);
++              flags |= EV_TESTED;
+               if (evalskip || exitstatus == 0)
+                       goto out;
+               evaltree(n->nbinary.ch2, flags);
+@@ -232,6 +234,7 @@
+               int status = 0; 
+               evaltree(n->nif.test, EV_TESTED);
++              flags |= EV_TESTED;
+               if (evalskip)
+                       goto out;
+               if (exitstatus == 0) {
diff --git a/ash-fd.patch b/ash-fd.patch
new file mode 100644 (file)
index 0000000..2ad698c
--- /dev/null
@@ -0,0 +1,19 @@
+--- ash-linux-0.2/parser.c.foo Sat Sep 11 17:33:40 1999
++++ ash-linux-0.2/parser.c     Sat Sep 11 17:36:02 1999
+@@ -552,15 +552,11 @@
+               }
+       } else if (n->type == NTOFD || n->type == NFROMFD) {
+               if (is_digit(wordtext[0]))
+-                      n->ndup.dupfd = digit_val(wordtext[0]);
++                      n->ndup.dupfd = atoi(wordtext);
+               else if (wordtext[0] == '-')
+                       n->ndup.dupfd = -1;
+               else
+-                      goto bad;
+-              if (wordtext[1] != '\0') {
+-bad:
+                       synerror("Bad fd number");
+-              }
+       } else {
+               n->nfile.fname = (union node *)stalloc(sizeof (struct narg));
+               n = n->nfile.fname;
This page took 1.451438 seconds and 4 git commands to generate.