commit bash-20130419 snapshot

This commit is contained in:
Chet Ramey
2013-05-06 08:40:57 -04:00
parent a37d979e7b
commit 2c511d383d
9 changed files with 582 additions and 731 deletions
+2 -1
View File
@@ -315,7 +315,8 @@ declare_internal (list, local_var)
}
else
#endif
if (STREQ (name, value))
/* disallow self references at global scope */
if (STREQ (name, value) && variable_context == 0)
{
builtin_error (_("%s: nameref variable self references not allowed"), name);
assign_error++;
+1 -1
View File
@@ -863,7 +863,7 @@ unset_builtin (list)
}
else
#endif /* ARRAY_VARS */
tem = unset_function ? unbind_func (name) : unbind_variable (name);
tem = unset_function ? unbind_func (name) : (nameref ? unbind_nameref (name) : unbind_variable (name));
/* This is what Posix.2 says: ``If neither -f nor -v
is specified, the name refers to a variable; if a variable by