testsuite: Add test case for Debian: #622383.

The fix is in commit 4ad538ba1a0ccb483899b4eaa70cc604d2b7bf78.
This commit is contained in:
Ville Skyttä 2011-05-01 16:00:07 +03:00
parent a614028a9b
commit 0448c765ba

View File

@ -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