mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-29 00:19:51 +02:00
commit bash-20200316 snapshot
This commit is contained in:
+7
-1
@@ -4142,7 +4142,7 @@ zero if @var{command} is found, and non-zero if not.
|
||||
@item declare
|
||||
@btindex declare
|
||||
@example
|
||||
declare [-aAfFgilnrtux] [-p] [@var{name}[=@var{value}] @dots{}]
|
||||
declare [-aAfFgiIlnrtux] [-p] [@var{name}[=@var{value}] @dots{}]
|
||||
@end example
|
||||
|
||||
Declare variables and give them attributes. If no @var{name}s
|
||||
@@ -4171,6 +4171,12 @@ The @option{-g} option forces variables to be created or modified at
|
||||
the global scope, even when @code{declare} is executed in a shell function.
|
||||
It is ignored in all other cases.
|
||||
|
||||
The @option{-I} option causes local variables to inherit the attributes
|
||||
(except the @var{nameref} attribute)
|
||||
and value of any existing variable with the same
|
||||
@var{name} at a surrounding scope.
|
||||
If there is no existing variable, the local variable is initially unset.
|
||||
|
||||
The following options can be used to restrict output to variables with
|
||||
the specified attributes or to give variables attributes:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user