Skip to content

Commit be9a838

Browse files
ira-bvseefood
andauthored
Fix knife completion (#2098)
Co-authored-by: Ira Abramov <[email protected]>
1 parent 34bc37c commit be9a838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completion/available/knife.completion.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ _KAC_regen_cache() {
5555

5656
# cached files can't have spaces in their names
5757
_KAC_get_cache_name_from_command() {
58-
echo "${@/ /_SPACE_}"
58+
echo "${@// /_SPACE_}"
5959
}
6060

6161
# the reverse operation from the function above
6262
_KAC_get_command_from_cache_name() {
63-
echo "${@/_SPACE_/ }"
63+
echo "${@//_SPACE_/ }"
6464
}
6565

6666
# given a command as argument, it fetches the cache for that command if it can find it

0 commit comments

Comments
 (0)