Blame SOURCES/0003-src-augrun.c-nexttoken-add-more-escape-characters.patch

628dc3
From 5218c2997b7b77752511ebc61ffa743fd2d8fcbf Mon Sep 17 00:00:00 2001
ca4abe
From: Pino Toscano <ptoscano@redhat.com>
ca4abe
Date: Fri, 17 May 2019 13:47:20 +0200
693d5e
Subject: [PATCH 3/9] * src/augrun.c (nexttoken): add more escape characters
ca4abe
ca4abe
Synchonize the list of "pass-through" characters with the set in the
ca4abe
'name_follow' variable in pathx.c: as pathx_escape_name() escapes them,
ca4abe
make sure that aug_srun() accepts them as arguments.
ca4abe
---
ca4abe
 src/augrun.c | 10 +++++++++-
ca4abe
 1 file changed, 9 insertions(+), 1 deletion(-)
ca4abe
ca4abe
diff --git a/src/augrun.c b/src/augrun.c
ca4abe
index 07f865a9..fd710c5f 100644
ca4abe
--- a/src/augrun.c
ca4abe
+++ b/src/augrun.c
ca4abe
@@ -133,8 +133,16 @@ static char *nexttoken(struct command *cmd, char **line, bool path) {
ca4abe
         copy = true;
ca4abe
         if (*s == '\\') {
ca4abe
             switch (*(s+1)) {
ca4abe
+                case ']':
ca4abe
                 case '[':
ca4abe
-                case ']':  /* pass both literally */
ca4abe
+                case '|':
ca4abe
+                case '/':
ca4abe
+                case '=':
ca4abe
+                case '(':
ca4abe
+                case ')':
ca4abe
+                case '!':
ca4abe
+                case ',':  /* pass them literally;
ca4abe
+                            * see 'name_follow' in pathx.c */
ca4abe
                     nescaped = 2;
ca4abe
                     break;
ca4abe
                 case 't':  /* insert tab */
ca4abe
-- 
628dc3
2.31.1
ca4abe