From df9f01dd50c767fbf2bef6776d2f13d71755d2ce Mon Sep 17 00:00:00 2001 From: zaleoth Date: Tue, 5 Oct 2021 20:47:49 +0200 Subject: [PATCH] completions/ip: Use `command` (#8334) Add "command" directive in front of ip commands to prevent bug from a buggy aliased "ip" --- share/completions/ip.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/completions/ip.fish b/share/completions/ip.fish index e2cfdd8aa..89565952d 100644 --- a/share/completions/ip.fish +++ b/share/completions/ip.fish @@ -176,7 +176,7 @@ function __fish_ip_commandwords end function __fish_ip_device - ip -o link show | while read -l a b c + command ip -o link show | while read -l a b c printf '%s\t%s\n' (string replace ':' '' -- $b) Device end end @@ -195,7 +195,7 @@ function __fish_ip_scope end function __fish_ip_netns_list - ip netns list | while read -l a b c + command ip netns list | while read -l a b c echo -- $a end end @@ -264,7 +264,7 @@ function __fish_complete_ip case delete switch $count case 3 - ip -o addr show | while read -l a b c d e + command ip -o addr show | while read -l a b c d e echo $d end case 4 @@ -276,7 +276,7 @@ function __fish_complete_ip case 5 switch $cmd[-2] case dev - ip -o addr show | string match "*$cmd[3]*" | while read -l a b c + command ip -o addr show | string match "*$cmd[3]*" | while read -l a b c echo $b end # TODO: Moar