]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20190809 snapshot
authorChet Ramey <chet.ramey@case.edu>
Mon, 12 Aug 2019 14:58:01 +0000 (10:58 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 12 Aug 2019 14:58:01 +0000 (10:58 -0400)
subst.c

diff --git a/subst.c b/subst.c
index 6660fa18b505baa902b3966796ef3165f1b67539..10a1d9061214d4ad2b27f933b65e5d8b0a119ece 100644 (file)
--- a/subst.c
+++ b/subst.c
@@ -10337,8 +10337,8 @@ add_twochars:
              if (word->flags & W_NOPROCSUB)
                tword->flags |= W_NOPROCSUB;
 
-if (word->flags & W_ASSIGNRHS)
-  tword->flags |= W_ASSIGNRHS;
+             if (word->flags & W_ASSIGNRHS)
+               tword->flags |= W_ASSIGNRHS;
 
              temp = (char *)NULL;
 
@@ -11216,6 +11216,7 @@ glob_expand_word_list (tlist, eflags)
   register int glob_index;
   WORD_LIST *glob_list, *output_list, *disposables, *next;
   WORD_DESC *tword;
+  int x;
 
   output_list = disposables = (WORD_LIST *)NULL;
   glob_array = (char **)NULL;
@@ -11237,7 +11238,7 @@ glob_expand_word_list (tlist, eflags)
       /* If the word isn't an assignment and contains an unquoted
         pattern matching character, then glob it. */
       if ((tlist->word->flags & W_NOGLOB) == 0 &&
-         unquoted_glob_pattern_p (tlist->word->word))
+         (x = unquoted_glob_pattern_p (tlist->word->word)))
        {
          glob_array = shell_glob_filename (tlist->word->word);