Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: ZSH_XTRACEFD variable
- X-seq: zsh-workers 45785
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Timothée Mazzucotelli <timothee.mazzucotelli@xxxxxxxxx>
- Subject: Re: Feature request: ZSH_XTRACEFD variable
- Date: Tue, 5 May 2020 20:50:55 +0000
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- In-reply-to: <CAD8ZDTotCLBANtzppSbCcgKyLhkXaVWysjqv99xS6bnLypBViA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <EL9xNuAdKSLWp41th3XxhRLVtul7jHkT9ons2s2c_35aNjCbCMzo4DqiCNV1SoNjdLhNgdUGLNMHQxQ9q4jDMcNIsxzonWx5jzOB5Hr8rBs=@protonmail.com> <20190518075514.hbygmb5dl5wz23h5@chaz.gmail.com> <20190520103444.qyih7lvoigvf3rfx@chaz.gmail.com> <CGME20190721150914epcas1p18b5b4b9ccc4e593e854b076a835257c7@epcas1p1.samsung.com> <CAD8ZDTrfrWTKfa1efTo63uk1XJO4BOp5hSLOfjL1tXkeDMf_QQ@mail.gmail.com> <1563722540.4311.24.camel@samsung.com> <CAD8ZDTokqOTfEajquX2SKU5pLWgd85sPdRMYkxE4nF0pQhi+BA@mail.gmail.com> <1565710707.5633.11.camel@samsung.com> <CAD8ZDTotCLBANtzppSbCcgKyLhkXaVWysjqv99xS6bnLypBViA@mail.gmail.com>
Timothée Mazzucotelli wrote on Sun, 19 Apr 2020 12:30 +0200:
> I managed to write a test for the ZSH_XTRACEFD feature in A04redirect.ztst,
> and am planning to add more tests, but maybe you'd have some hints on what
> I should test?
The case that a shadowed value is equal to the value that's going out of scope:
ZSH_XTRACEFD=3
() {
local ZSH_XTRACEFD=2
() {
local ZSH_XTRACEFD=3
}
# at this point fd=3 should still be open
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author