]> git.pld-linux.org Git - packages/mksh.git/blobdiff - mksh-circumflex.patch
up to 56
[packages/mksh.git] / mksh-circumflex.patch
index f52bbed77c3a945c3a6a51ea8028b7893f7dfd65..3b13f2719681c51c163737e57d32f85bcd0c35df 100644 (file)
@@ -1,45 +1,46 @@
-diff -ur mksh-40.org//eval.c mksh-40/eval.c
---- mksh-40.org//eval.c        2011-06-12 16:45:57.000000000 +0200
-+++ mksh-40/eval.c     2011-07-07 18:27:58.891492090 +0200
-@@ -887,6 +887,7 @@
-                               switch (c) {
-                               case '[':
-                               case '!':
-+                              case NOT2:
-                               case '-':
-                               case ']':
+diff -ur mksh-56.orig/eval.c mksh-56/eval.c
+--- mksh-56.orig/eval.c        2017-08-12 22:10:26.321676398 +0200
++++ mksh-56/eval.c     2017-08-12 22:40:32.672676143 +0200
+@@ -1005,6 +1005,7 @@
+                               switch (ord(c)) {
+                               case ord('['):
+                               case ord('!'):
++                              case ord(NOT2):
+                               case ord('-'):
+                               case ord(']'):
                                        /*
-diff -ur mksh-40.org//misc.c mksh-40/misc.c
---- mksh-40.org//misc.c        2011-06-12 16:45:58.000000000 +0200
-+++ mksh-40/misc.c     2011-07-07 18:28:39.015826686 +0200
-@@ -843,7 +843,7 @@
-       bool notp, found = false;
-       const unsigned char *orig_p = p;
+diff -ur mksh-56.orig/misc.c mksh-56/misc.c
+--- mksh-56.orig/misc.c        2017-08-12 22:10:26.321676398 +0200
++++ mksh-56/misc.c     2017-08-12 22:40:32.672676143 +0200
+@@ -966,7 +966,7 @@
+       char *subp;
  
--      if ((notp = tobool(ISMAGIC(*p) && *++p == '!')))
-+      if ((notp = tobool(ISMAGIC(*p) && (*++p == '!' || *p == NOT2))))
-               p++;
-       do {
-               c = *p++;
-diff -ur mksh-40.org//sh.h mksh-40/sh.h
---- mksh-40.org//sh.h  2011-06-12 16:59:09.000000000 +0200
-+++ mksh-40/sh.h       2011-07-07 18:29:16.346761511 +0200
-@@ -380,5 +380,6 @@
- #define MAGIC         (7)     /* prefix for *?[!{,} during expand */
- #define ISMAGIC(c)    ((unsigned char)(c) == MAGIC)
+       /* check for negation */
+-      if (ISMAGIC(p[0]) && ord(p[1]) == ord('!')) {
++      if (ISMAGIC(p[0]) && (ord(p[1]) == ord('!') || ord(p[1]) == ord(NOT2))) {
+               p += 2;
+               negated = true;
+       }
+diff -ur mksh-56.orig/sh.h mksh-56/sh.h
+--- mksh-56.orig/sh.h  2017-08-12 22:10:26.325009789 +0200
++++ mksh-56/sh.h       2017-08-12 22:40:32.696009488 +0200
+@@ -550,6 +550,7 @@
+  */
+ #define MAGIC         KSH_BEL /* prefix for *?[!{,} during expand */
+ #define ISMAGIC(c)    (ord(c) == ord(MAGIC))
 +#define NOT2          '^'
  
#define LINE          4096    /* input line size */
EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
  
-diff -urN mksh.org/check.t mksh/check.t
---- mksh.org/check.t   2014-01-11 19:10:02.000000000 +0100
-+++ mksh/check.t       2014-01-20 14:12:37.924222697 +0100
-@@ -2085,7 +2085,7 @@
-       cbc
-       -bc cbc
+diff -ur mksh-56.orig/check.t mksh-56/check.t
+--- mksh-56.orig/check.t       2017-08-12 22:10:26.321676398 +0200
++++ mksh-56/check.t    2017-08-12 22:41:46.886083258 +0200
+@@ -2438,7 +2438,7 @@
+       !bc +bc ,bc 0bc 1bc ^bc cbc
+       !bc +bc ,bc -bc 0bc 1bc ^bc cbc
        abc bbc
 -      ^bc abc bbc
-+      !bc -bc ^bc cbc
-       !bc -bc ^bc cbc
++      !bc +bc ,bc -bc 0bc 1bc ^bc cbc
+       +bc ,bc -bc
+       -bc 0bc 1bc
  ---
- name: glob-range-2
This page took 0.078898 seconds and 4 git commands to generate.