mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-27 06:31:19 -03:00
Print an error when complete reaches its recursion limit
This commit is contained in:
committed by
Fabian Homborg
parent
b9a22c7136
commit
aa011f70a8
@@ -59,3 +59,9 @@ complete
|
||||
# CHECK: complete {{.*}}
|
||||
# CHECK: complete {{.*}}
|
||||
# CHECK: complete {{.*}}
|
||||
|
||||
# Recursive calls to complete (see #3474)
|
||||
complete -c complete_test_recurse1 -xa '(echo recursing 1>&2; complete -C"complete_test_recurse1 ")'
|
||||
complete -C'complete_test_recurse1 '
|
||||
# CHECKERR: recursing
|
||||
# CHECKERR: complete: maximum recursive depth reached
|
||||
|
||||
Reference in New Issue
Block a user