help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Does declare in function define local variables?


From: Dan Douglas
Subject: Re: [Help-bash] Does declare in function define local variables?
Date: Fri, 7 Dec 2018 20:37:48 -0600

On Fri, Dec 7, 2018 at 5:43 PM Peng Yu <address@hidden> wrote:
> `x` is not accessible outside the function. Is a variable declared
> (without -g) in function local?

"When used in a function, declare and typeset make each name local, as
with the local command, unless the -g option is supplied."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]