- rel back to 0.1, https://bugs.launchpad.net/mksh/+bug/1179287
[packages/mksh.git] / mksh-circumflex.patch
CommitLineData
118a1201
AM
1diff -ur mksh-40.org//eval.c mksh-40/eval.c
2--- mksh-40.org//eval.c 2011-06-12 16:45:57.000000000 +0200
3+++ mksh-40/eval.c 2011-07-07 18:27:58.891492090 +0200
4@@ -887,6 +887,7 @@
5 switch (c) {
6 case '[':
cdde4aae 7 case '!':
118a1201
AM
8+ case NOT2:
9 case '-':
10 case ']':
11 /*
12diff -ur mksh-40.org//misc.c mksh-40/misc.c
13--- mksh-40.org//misc.c 2011-06-12 16:45:58.000000000 +0200
14+++ mksh-40/misc.c 2011-07-07 18:28:39.015826686 +0200
5b678227
AM
15@@ -843,7 +843,7 @@
16 bool notp, found = false;
118a1201
AM
17 const unsigned char *orig_p = p;
18
5b678227
AM
19- if ((notp = tobool(ISMAGIC(*p) && *++p == '!')))
20+ if ((notp = tobool(ISMAGIC(*p) && (*++p == '!' || *p == NOT2))))
118a1201
AM
21 p++;
22 do {
23 c = *p++;
24diff -ur mksh-40.org//sh.h mksh-40/sh.h
25--- mksh-40.org//sh.h 2011-06-12 16:59:09.000000000 +0200
26+++ mksh-40/sh.h 2011-07-07 18:29:16.346761511 +0200
cdde4aae 27@@ -380,5 +380,6 @@
118a1201
AM
28 #define MAGIC (7) /* prefix for *?[!{,} during expand */
29 #define ISMAGIC(c) ((unsigned char)(c) == MAGIC)
118a1201
AM
30+#define NOT2 '^'
31
32 #define LINE 4096 /* input line size */
33
34diff -ur mksh-40.org//tree.c mksh-40/tree.c
35--- mksh-40.org//tree.c 2011-05-29 04:19:21.000000000 +0200
36+++ mksh-40/tree.c 2011-07-07 18:30:12.088149284 +0200
37@@ -289,7 +289,7 @@
38 case CHAR:
39 c = *wp++;
40 if ((opmode & WDS_MAGIC) &&
cdde4aae
KK
41- (ISMAGIC(c) || c == '[' || c == '!' ||
42+ (ISMAGIC(c) || c == '[' || c == '!' || c == NOT2 ||
118a1201
AM
43 c == '-' || c == ']' || c == '*' || c == '?'))
44 shf_putc(MAGIC, shf);
45 shf_putc(c, shf);
This page took 0.108906 seconds and 4 git commands to generate.