Bash-4.2 patch 25
This commit is contained in:
parent
6c19148d33
commit
6d41b71587
4 changed files with 19 additions and 7 deletions
7
subst.c
7
subst.c
|
@ -366,6 +366,11 @@ dump_word_flags (flags)
|
|||
f &= ~W_ASSNBLTIN;
|
||||
fprintf (stderr, "W_ASSNBLTIN%s", f ? "|" : "");
|
||||
}
|
||||
if (f & W_ASSNGLOBAL)
|
||||
{
|
||||
f &= ~W_ASSNGLOBAL;
|
||||
fprintf (stderr, "W_ASSNGLOBAL%s", f ? "|" : "");
|
||||
}
|
||||
if (f & W_COMPASSIGN)
|
||||
{
|
||||
f &= ~W_COMPASSIGN;
|
||||
|
@ -2803,7 +2808,7 @@ do_assignment_internal (word, expand)
|
|||
}
|
||||
else if (assign_list)
|
||||
{
|
||||
if (word->flags & W_ASSIGNARG)
|
||||
if ((word->flags & W_ASSIGNARG) && (word->flags & W_ASSNGLOBAL) == 0)
|
||||
aflags |= ASS_MKLOCAL;
|
||||
if (word->flags & W_ASSIGNASSOC)
|
||||
aflags |= ASS_MKASSOC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue