[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-525-ge4cdcca

Igor Murzov e-mail at date.by
Wed Nov 9 13:12:16 UTC 2011

The following commit has been merged in the master branch:
commit 588facb6b64a76e8da65b3dcb1daf8bbf073cb41
Author: Igor Murzov <e-mail at date.by>
Date:   Wed Nov 9 04:39:27 2011 +0300

    testsuite: Add one more test for _get_comp_words_by_ref()
    This test exposes bug in __get_cword_at_cursor_by_ref().

diff --git a/test/unit/_get_comp_words_by_ref.exp b/test/unit/_get_comp_words_by_ref.exp
index f5c7ab3..febfccd 100644
--- a/test/unit/_get_comp_words_by_ref.exp
+++ b/test/unit/_get_comp_words_by_ref.exp
@@ -115,6 +115,14 @@ assert_bash_list {"b\\ c a"} $cmd $test
+set test {a\ b a\ b| should return a\ b};  # | = cursor position
+set cmd {COMP_WORDS=('a\ b' 'a\ b'); COMP_CWORD=1; COMP_LINE='a\ b a\ b'; COMP_POINT=11; _get_comp_words_by_ref cur prev; echo "$cur $prev"}
+assert_bash_list {"a\\ b a\\ b"} $cmd $test
 set test {a b\| c should return b\ };  # | = cursor position
 set cmd {COMP_WORDS=(a 'b\ c'); COMP_CWORD=1; COMP_LINE='a b\ c'; COMP_POINT=4; _get_comp_words_by_ref cur prev; echo "$cur $prev"}
 assert_bash_list {"b\\ a"} $cmd $test


More information about the Bash-completion-commits mailing list