Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More rabbit-holes with unset variables
- X-seq: zsh-workers 47636
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Subject: Re: More rabbit-holes with unset variables
- Date: Thu, 26 Nov 2020 12:29:49 +0100
- Archived-at: <https://zsh.org/workers/47636>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAN%3D4vMqbTVUCi0m4VNzizuAcqgFAbYD6XtP1baoO6jhApgkJvw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-io1-f51.google.com) smtp.remote-ip=209.85.166.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SfTKsD/G1McwNrU5m5Anb3rO87XI/APw6uMg3braVqI=; b=KaxhNY/J80vk8c9oz3Nxh2tyOycSEKdBTt/X2yDnSthF8NL6/sOH4Hx41KmCkey2OA yTDSzvSLUfMAS1Uahlez2SxZRehV8ud4VtcKUOpKQotQQUgWqamBpBlkwhTic1qbMPId /CQwqCQ6Wy9eRvMH5qmaxboQTs5SSWq+EKq/TupZcT8LLjECiciLoHx2WKp3jiDyG65S 0Oe00HSielhzvaVOtL202n4Yr0qllHWIe7GzhcHHkc3T03d94HN97KRDKDQ3mox+U8KC SaYL2ROKsJKuANoNrVJsgvEJnKNfiXcNFPTYoywMYq8q3rZHEMuwvgsOV5HuhoYP3Phs eWQA==
- In-reply-to: <86243-1606389706.499549@-gQx.nNYG.4Z3k>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAH+w=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <20201126061029.in5tpnrg5bplam5k@chazelas.org> <CAMP44s1XgxdDAAL+7nL3_GK=dZUasPmSWZaKqWg0T-v5iq1eYg@mail.gmail.com> <86243-1606389706.499549@-gQx.nNYG.4Z3k>
- Sender: zsh-workers-request@xxxxxxx
On Thu, Nov 26, 2020 at 12:22 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> But if we decide to "fix" it for zsh, I don't think it'll break too much.
What kind of change do you envision? Will it change the output of this command?
zsh -c 'f() { local -i x; echo $x; }; f'
If yes, it'll likely break a lot of code (it'll surely break my code).
If no, then the behavior of the following command should also stay
unchanged for consistency:
zsh -c 'f() { local x; echo ${x-y}; }; f'
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author