From c15975113ab80241c71dc6dfa41a470b232de4ce Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 11 May 2012 18:59:38 -0700 Subject: Fix for https://github.com/ridiculousfish/fishfish/issues/2 --- tests/test6.in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/test6.in (limited to 'tests/test6.in') diff --git a/tests/test6.in b/tests/test6.in new file mode 100755 index 00000000..e9b6e9b4 --- /dev/null +++ b/tests/test6.in @@ -0,0 +1,11 @@ + +# Test that conditions that add or remove completions don't deadlock, etc. +# We actually encountered some case that was effectively like this (Issue 2 in github) + +complete --command AAAA -l abcd --condition 'complete -c AAAA -l efgh' +complete -C'AAAA -' +complete -C'AAAA -' + +complete --command BBBB -l abcd --condition 'complete -e --command BBBB -l abcd' +complete -C'BBBB -' +complete -C'BBBB -' -- cgit v1.2.3