Test that things can't wrap themselves

This is a test belonging to the previous commit, 58b696bed.

See #5541.
This commit is contained in:
Fabian Homborg 2019-01-17 16:43:24 +01:00
parent 02c32c638f
commit 34ed958f72
2 changed files with 8 additions and 1 deletions

View File

@ -18,4 +18,10 @@ alias myalias2='complete_test_alpha1 arg2'
myalias1 call1
myalias2 call2
complete -C'myalias1 call3 '
complete -C'myalias2 call3 '
complete -C'myalias2 call3 '
# Ensure that commands can't wrap themselves - if this did,
# the completion would be executed a bunch of times.
function t --wraps t; echo t; end
complete -c t -fa '(t)'
complete -C't '

View File

@ -11,3 +11,4 @@ arg1 call1
arg2 call2
complete_test_alpha1 arg1 call3
complete_test_alpha1 arg2 call3
t