Skip to content

Commit

Permalink
Fix test for funcfiletrace on later zshdb in ok4zshdb.sh (Closes: #9)
Browse files Browse the repository at this point in the history
funcfiletrace is no longer listed in the output of declare -p.
  • Loading branch information
irl committed Aug 30, 2017
1 parent 3ae152f commit 94b389a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/zsh/ok4zshdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PS4='%(%x:%I): [%?]
'

second_fn() {
decls=$(declare -p)
if [[ $decls != *funcfiletrace* ]] ; then
zmodload zsh/parameter
if ! (( ${+funcfiletrace} )) ; then
print "Looks like you don't have funcfiletrace."
print "We need a zsh new enough which has that."
exit 10
Expand Down

0 comments on commit 94b389a

Please sign in to comment.