commit bash-20150102 snapshot

This commit is contained in:
Chet Ramey
2015-01-12 11:03:15 -05:00
parent 02a413f643
commit 8f50a0236c
64 changed files with 29713 additions and 1770 deletions
+6 -1
View File
@@ -4210,7 +4210,12 @@ and assigned @var{value}.
The @var{option} can be any of the options accepted by @code{declare}.
@code{local} can only be used within a function; it makes the variable
@var{name} have a visible scope restricted to that function and its
children. The return status is zero unless @code{local} is used outside
children.
If @var{name} is @samp{-}, the set of shell options is made local to the
function in which @code{local} is invoked: shell options changed using
the @code{set} builtin inside the function are restored to their original
values when the function returns.
The return status is zero unless @code{local} is used outside
a function, an invalid @var{name} is supplied, or @var{name} is a
readonly variable.