summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 16:13:32 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 16:15:01 -0700
commit2d698b6e42d8dca191ac795ef5dba3bf62496eec (patch)
treeac5e0b67043c50f49160e9fe407435706cf30444 /shell.c
parentf1250933e4a2ac09a3d0b25b3877068e12f44da5 (diff)
downloadvyatta-bash-2d698b6e42d8dca191ac795ef5dba3bf62496eec.tar.gz
vyatta-bash-2d698b6e42d8dca191ac795ef5dba3bf62496eec.zip
Integrate bash 3.2 version
This is merge of current Debian stable (Lenny) version of Bash with Vyatta changes.
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell.c b/shell.c
index 868c23b..9836035 100644
--- a/shell.c
+++ b/shell.c
@@ -535,6 +535,7 @@ main (argc, argv, env)
Variables from the environment are expected to be set, etc. */
shell_initialize ();
+ set_default_lang ();
set_default_locale_vars ();
if (interactive_shell)
@@ -1238,7 +1239,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
@@ -1566,7 +1567,7 @@ set_shell_name (argv0)
if (argv0 && *argv0 == '-')
{
if (*shell_name == '-')
- shell_name++;
+ shell_name++;
login_shell++;
}