[Pkg-zsh-devel] Bug#851501: Bug#851501: zsh: available variable from module not listed in "declare -p" output
Daniel Shahaf
danielsh at apache.org
Sun Jan 15 18:10:28 UTC 2017
Iain R. Learmonth wrote on Sun, Jan 15, 2017 at 17:06:09 +0000:
> Working on the zshdb package, the RC bug (FTBFS) #848739 has come up. As part
> of the build process, zshdb looks for the funcfiletrace feature by searching
> the output of "declare -p". While I haven't done a git bisect, this must have
> been working on the 5th of December so must have been broken by an update since
> then (the autobuilder passed it on that date).
That would have been the 5.2→5.3 update. (It's a shame that there's no
autobuilder that uses the latest upstream master of everything…)
> ------------------------------------------------------------------------
> stilton% zsh --version
> zsh 5.0.7 (x86_64-pc-linux-gnu)
> stilton% declare -p | grep funcfiletrace
> Binary file (standard input) matches
> ------------------------------------------------------------------------
>
> and the broken one:
>
> ------------------------------------------------------------------------
> irl at orbiter ~/debian/zshdb master zsh --version
> zsh 5.3.1 (x86_64-debian-linux-gnu)
> irl at orbiter ~/debian/zshdb master declare -p | grep funcfiletrace
> ✘ irl at orbiter ~/debian/zshdb master
> ------------------------------------------------------------------------
I can't find it now, but I'm pretty sure that was an intentional change.
$funcfiletrace is declared with the PM_HIDE and PM_HIDEVAL bitflags; one
of them must be causing the difference.
Just use «if (( ${+funcfiletrace} ))» instead.
Cheers,
Daniel
More information about the Pkg-zsh-devel
mailing list