Bugs item #312746, was changed at 2010-10-10 10:51 by Freddy Vulto You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312746&group_id=100114
Status: Open Priority: 3 Submitted By: Ville Skyttä (scop-guest) Assigned to: Nobody (None) Summary: _tilde.exp unit test failure with bash 3.2 Distribution: None Originally reported in: None Milestone: None Status: None Original bug number: Initial Comment: I'm getting this failure when running the _tilde.exp unit test with bash 3.2.25 or 3.2.39; with 4.1.7 it passes fine. $ ./runUnit --tool_exec ~/bin/bash-3.2.39 _tilde.exp [...] Running ./unit/_tilde.exp ... ERROR executing bash command "compgen -u"ERROR: tcl error sourcing ./unit/_tilde.exp. ERROR: can't read "full": no such variable while executing "format {_tilde "~%s"; printf "%%s" "${comprep...@]}"} $full" invoked from within "set cmd [format {_tilde "~%s"; printf "%%s" "${comprep...@]}"} $full]" (file "./unit/_tilde.exp" line 39) invoked from within "source ./unit/_tilde.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source ./unit/_tilde.exp" invoked from within "catch "uplevel #0 source $test_file_name"" ---------------------------------------------------------------------- >Comment By: Freddy Vulto (fvu-guest) Date: 2010-10-10 21:54 Message: I cannot reproduce the problem on bash-3.2.0, bash-3.2.39 or bash-3.2.48. I put a debug message in: --- a/test/unit/_tilde.exp +++ b/test/unit/_tilde.exp @@ -19,6 +19,8 @@ proc teardown {} { setup part full +send_user "part: $part\n" +send_user "full: $full\n" set test "function should run without errors" assert_bash_exec {_tilde > /dev/null} $test And this is the output: $ ./run unit/_tilde.exp ... part: avahi- full: avahi-autoipd === unit Summary === # of expected passes 3 /mnt/proj/bashCompletion/bash-completion.git/test, bash-3.2.48(1)-release ---8<--------------------------------------------------------------- $ ./runUnit --tool_exec /opt/bash-3.2.0/bin/bash _tilde.exp ... Running ./unit/_tilde.exp ... part: Debia full: Debian-exim === unit Summary === # of expected passes 3 /home/freddy/proj/bashCompletion/bash-completion.git/test, bash-3.2.0(1)-release ---8<--------------------------------------------------------------- $ ./runUnit _tilde.expTest Run By freddy on Sun Oct 10 21:47:15 2010 ... Running ./unit/_tilde.exp ... part: Debia full: Debian-exim === unit Summary === # of expected passes 3 /home/freddy/proj/bashCompletion/bash-completion.git/test, bash-3.2.39(1)-release Strange that `full' variable isn't available in your error, because it seems available on my tests. Does the debug message output `part' and `full' successfully on your machine? ---------------------------------------------------------------------- You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312746&group_id=100114 _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel