mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
Test that things can't wrap themselves
This is a test belonging to the previous commit, 58b696bed
.
See #5541.
This commit is contained in:
parent
02c32c638f
commit
34ed958f72
|
@ -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 '
|
||||
|
|
|
@ -11,3 +11,4 @@ arg1 call1
|
|||
arg2 call2
|
||||
complete_test_alpha1 arg1 call3
|
||||
complete_test_alpha1 arg2 call3
|
||||
t
|
||||
|
|
Loading…
Reference in New Issue
Block a user