From 97f0cc966211aa2daad6e5e2d6a616feb230cb4e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 17 Jan 2019 09:44:35 +0100 Subject: [PATCH] Don't wrap functions with themselves Our weird %-expanding function wrappers around kill et all defined "--wraps" for the same name. As it turns out, fish follows that one, and executes the completion multiple times. I didn't notice because these tend to be rather quick on linux, but on macOS that's apparently a real issue. Fixes #5541. [ci skip] --- share/config.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/config.fish b/share/config.fish index 160524b93..a3abb82f3 100644 --- a/share/config.fish +++ b/share/config.fish @@ -271,23 +271,23 @@ function __fish_expand_pid_args end end -function bg --wraps bg +function bg builtin bg (__fish_expand_pid_args $argv) end -function fg --wraps fg +function fg builtin fg (__fish_expand_pid_args $argv) end -function kill --wraps kill +function kill command kill (__fish_expand_pid_args $argv) end -function wait --wraps wait +function wait builtin wait (__fish_expand_pid_args $argv) end -function disown --wraps disown +function disown builtin disown (__fish_expand_pid_args $argv) end