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

Re: A way to untie -T vars?



On Mon, Jan 23, 2023 at 10:42 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On 1/23/23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > Another interesting note, "typeset -x" implies "-g" but "local -x" does
> > not.
>
> There's no way it could imply it, since local -g doesn't accept -g, so
> you would have to argue why typeset -x should not imply it (and do it
> like 30 years ago) :).

One of those things I'd forgotten:  it breaks the usual equivalence of
"typeset" and "local" when occurring in function context.

Now that I think of it, I haven't checked "declare".




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