Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "typeset -p" and no_GLOBAL_EXPORT, other misc.



On Tue, Mar 12, 2024 at 1:31 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> $ f() { typeset -i i; integer i=2+2; echo "$i"; }
>
> Would that still find the global $i instead of "the $i in f"?

For bash 5.0 at least, the answer is "yes".  I don't have a newer one
handy to try.




Messages sorted by: Reverse Date, Date, Thread, Author