[Bash-completion-devel] [bash-completion-Bugs][313480] _filedir a$b -> h unit test failure

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Thu Dec 29 07:54:08 UTC 2011


Bugs item #313480, was changed at 2011-12-26 17:38 by Ville Skyttä
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313480&group_id=100114

Status: Open
Priority: 3
Submitted By: Ville Skyttä  (scop-guest)
Assigned to: Nobody (None)
Summary: _filedir a$b -> h unit test failure 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
bash 4.2.20(1)-release

$ ./runUnit --debug _filedir.exp
[...]
Running ./unit/_filedir.exp ...
FAIL: completing f a\$b/ should return h
FAIL: f "a\$b/ should show completion
FAIL: completing f2 a\$b/ should return h
[...]

That test case looks quite weird to me (what are those \b's for?), help needed.  dbg.log contains stuff like:


send: sending "f a\$b/\t" to { exp7 }

expect: does "" (spawn_id exp7) match exact string "f a\$b/"? no
f a\$b/
expect: does "f a\$b/" (spawn_id exp7) match exact string "f a\$b/"? yes
expect: set expect_out(0,string) "f a\$b/"
expect: set expect_out(spawn_id) "exp7"
expect: set expect_out(buffer) "f a\$b/"
Gate keeper glob pattern f/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h $'/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h '. Activating booster.
Gate keeper glob pattern for '^/@$' is '/@'. Activating booster.

expect: does "" (spawn_id exp7) match regular expression "^\u0008\u0008\u0008\u0008\u0008/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h $"? Gate "\u0008\u0008\u0008\u0008\u0008/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h "? gate=no
"^/@$"? Gate "/@"? gate=no
h 
expect: does "h " (spawn_id exp7) match regular expression "^\u0008\u0008\u0008\u0008\u0008/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h $"? Gate "\u0008\u0008\u0008\u0008\u0008/home/scop/cvs/bash-completion/test/fixtures/_filedir/a\\\$b/h "? gate=no
"^/@$"? Gate "/@"? gate=no
expect: timed out
FAIL: completing f a\$b/ should return h


----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2011-12-29 09:54

Message:
It's just a test failure as far as I can tell, I haven't run into any unexpected completion problems.

----------------------------------------------------------------------

Comment By: Igor Murzov (garik-guest)
Date: 2011-12-29 00:42

Message:
Ville, does bash complete filenames containing '$' as expected on Fedora 16? It's not clear from your message if this is only failed test or the real issue.

Test passes for me with:
* bash-4.1.010
* tcl-8.5.9
* expect-5.44.1.15
* dejagnu-1.5

----------------------------------------------------------------------

Comment By: Ville Skyttä  (scop-guest)
Date: 2011-12-26 17:46

Message:
I've tried to bisect this but found nothing that would have broken it. I've also tried with bash 4.1.5 (Debian bash-static) on this box, same results. This system was recently upgraded from Fedora 14 to Fedora 16, bringing updates to bash, expect, tcl, and dejagnu, but downgrading those back to the Fedora 14 versions didn't help either.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313480&group_id=100114



More information about the Bash-completion-devel mailing list