[Pkg-zsh-devel] Bug#851501: zsh: available variable from module not listed in "declare -p" output

Iain R. Learmonth irl at debian.org
Sun Jan 15 17:06:09 UTC 2017


Package: zsh
Version: 5.3.1-1
Severity: normal

Hi,

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).

Here's some outputs:

------------------------------------------------------------------------
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  
------------------------------------------------------------------------

This now gives a non-zero return status, because that string is no longer
present in the output. The variable is there however, and can be used:

---/tmp/test_funcfiletrace.sh-------------------------------------------
#!/usr/bin/zsh
hello() {
	echo $funcfiletrace
}
hello
------------------------------------------------------------------------
 irl at orbiter  ~/debian/zshdb   master  zsh /tmp/test_funcfiletrace.sh
/tmp/test_funcfiletrace.sh:7
------------------------------------------------------------------------

Thanks,
Iain.



More information about the Pkg-zsh-devel mailing list