From be9a83801537638341a3979c927ac5906ae04be2 Mon Sep 17 00:00:00 2001 From: Ira Abramov <44946400+ira-bv@users.noreply.github.com> Date: Tue, 1 Mar 2022 23:22:56 +0200 Subject: [PATCH] Fix knife completion (#2098) Co-authored-by: Ira Abramov --- completion/available/knife.completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/available/knife.completion.bash b/completion/available/knife.completion.bash index 4b9950ed..c0fb6a99 100644 --- a/completion/available/knife.completion.bash +++ b/completion/available/knife.completion.bash @@ -55,12 +55,12 @@ _KAC_regen_cache() { # cached files can't have spaces in their names _KAC_get_cache_name_from_command() { - echo "${@/ /_SPACE_}" + echo "${@// /_SPACE_}" } # the reverse operation from the function above _KAC_get_command_from_cache_name() { - echo "${@/_SPACE_/ }" + echo "${@//_SPACE_/ }" } # given a command as argument, it fetches the cache for that command if it can find it