]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - shell.c
commit bash-20051222 snapshot
[thirdparty/bash.git] / shell.c
diff --git a/shell.c b/shell.c
index 6d07c78f589d9f5f3b3eec1cc0b8f942d90198ab..1a4c001702f9b4bfce10a30fe5e838689834dde5 100644 (file)
--- a/shell.c
+++ b/shell.c
@@ -1208,7 +1208,7 @@ run_wordexp (words)
       wl = global_command->value.Simple->words;
       if (protected_mode)
        for (tl = wl; tl; tl = tl->next)
-         tl->word->flags |= W_NOCOMSUB;
+         tl->word->flags |= W_NOCOMSUB|W_NOPROCSUB;
       result = wl ? expand_words_no_vars (wl) : (WORD_LIST *)0;
     }
   else