Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A way to untie -T vars?
- X-seq: zsh-users 28758
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Pier Paolo Grassi <pierpaolog@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: A way to untie -T vars?
- Date: Mon, 23 Jan 2023 11:12:23 -0800
- Archived-at: <https://zsh.org/users/28758>
- In-reply-to: <CAHYJk3Qv9tivoCAZJh4LcGQZ0cQ9WhCHcAt-7iMuPY_QFMvWEQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVDEmKnY9TiYwaAgvzXEqNhLwZo46paUPjJOz9HsU3_djg@mail.gmail.com> <CAH+w=7YY5F_ZYJgivw9PSjt8PTQ9R+gHF3jnjbBw-LLkEnc2zg@mail.gmail.com> <CAH+w=7bL4txwLp4zFPeDvb6fbYfJV6-mT+S4oFnrJ7cXPZr_Xw@mail.gmail.com> <CAH+w=7a1RHjYSGnY2=dgZn9n1ZgC2PyJQ12imiDU4gLW4q4saA@mail.gmail.com> <CAN=4vMpo9i5qr-HmH2ymaxaJ6hQLg-gThZkSRJvafUEp1oN0ag@mail.gmail.com> <CAP+y1xAJq6TrkbTOSFNs=jbf7_=sTYnj3Y1=qHoF5W4S1r=Zkg@mail.gmail.com> <CAN=4vMq56vaLYud4uX86c_fJOtuAHALGXvDqEb7fEB1-=Ec5ug@mail.gmail.com> <CAH+w=7biHnWJV1=Cxd20xzikc9hk7037Rn4EwLenvyHsiQifmQ@mail.gmail.com> <CAN=4vMpQRirh_m_-G3RQH7fxsMbs=Yh7biuXUbypzMmKG=Q3sg@mail.gmail.com> <CAH+w=7bzka=NBZ1SGRt7Fj65KuC3mmH99E8uyCn=Ff=uFaM58w@mail.gmail.com> <CAHYJk3Qv9tivoCAZJh4LcGQZ0cQ9WhCHcAt-7iMuPY_QFMvWEQ@mail.gmail.com>
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