Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "typeset -p" and no_GLOBAL_EXPORT, other misc.
- X-seq: zsh-workers 52738
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: "typeset -p" and no_GLOBAL_EXPORT, other misc.
- Date: Tue, 12 Mar 2024 14:02:31 -0700
- Archived-at: <https://zsh.org/workers/52738>
- In-reply-to: <CAH+w=7bCHFN9M+6vnpGPcGgA2D8P7rF0znrH0t5X4fweSpGfAQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YBMPe_6qZPt8-CR_EhJPGbnyiNNAguGcWiD3K7nLtB9A@mail.gmail.com> <20240312084926.d6vbk75ozud7i2jm@chazelas.org> <CAH+w=7Z40c_8k1FHra0K9iQvih=4LZmS-pkx06o_CiDf0wTJJQ@mail.gmail.com> <20240312200646.znbo4dw3rocza335@chazelas.org> <CAH+w=7bCHFN9M+6vnpGPcGgA2D8P7rF0znrH0t5X4fweSpGfAQ@mail.gmail.com>
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