The following commit has been merged in the master branch:
commit 0448c765ba60eb2b2f2061d5054272f45cea3c31
Author: Ville Skyttä <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to