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

Re: Feature request: ZSH_XTRACEFD variable



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