Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to have function local variable but must behave just a simple one
- X-seq: zsh-users 29209
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: How to have function local variable but must behave just a simple one
- Date: Sat, 26 Aug 2023 23:13:18 +0200
- Archived-at: <https://zsh.org/users/29209>
- In-reply-to: <eeeb1539-377e-ef3f-e96a-435dfd8e422b@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZAfvds3Ztby301R+3dp0WuFWNn=0bLAQ+h5Stvp4z9tOQ@mail.gmail.com> <CAN=4vMr9UjvPAJNRW8i6xviCwy-aLTb+oKoO3Y+Y-wnYzGLc7w@mail.gmail.com> <CAH+w=7YM0dFNLKJo1E1w29zHCfv909gGvRCAd=LqUcqWcaHTWA@mail.gmail.com> <522ad88e-adb2-74a7-103b-62af0f3e7b4e@eastlink.ca> <CAN=4vMoUqVR3p=fQR_anCLiywmmU-vnw4SupZTEzun-X1SxWoA@mail.gmail.com> <eeeb1539-377e-ef3f-e96a-435dfd8e422b@eastlink.ca>
On Sat, Aug 26, 2023 at 11:11 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2023-08-26 13:58, Roman Perepelitsa wrote:
> >
> > Indeed, given that in zsh there are no function-scoped parameters that
> > outlive an invocation of the function, Budi will have to use a global
> > parameter and take necessary precautions to ensure the name of the
> > parameter does not clash with other globals.
> >
> > Roman.
>
> I'm puzzled as to what the problem really is from a practical point of
> view.
You aren't missing anything.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author