[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-162-g0448c76

Ville Skyttä ville.skytta at iki.fi
Sun May 1 13:02:35 UTC 2011


The following commit has been merged in the master branch:
commit 0448c765ba60eb2b2f2061d5054272f45cea3c31
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun May 1 16:00:07 2011 +0300

    testsuite: Add test case for Debian: #622383.
    
    The fix is in commit 4ad538ba1a0ccb483899b4eaa70cc604d2b7bf78.

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

-- 
bash-completion



More information about the Bash-completion-commits mailing list