From c70ce79adc2e13e48d45c58301a371623d4aaf12 Mon Sep 17 00:00:00 2001 From: Morten Hekkvang Date: Fri, 6 Sep 2019 10:15:06 +0200 Subject: [PATCH] Fix substitution of comma to space character, suggested by @albers Signed-off-by: Morten Hekkvang (cherry picked from commit b85e1e2efefcc06c8de426d003fa2936f2286bb4) Signed-off-by: Sebastiaan van Stijn --- contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 14f2858119..f18f62fc2d 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -551,7 +551,7 @@ __docker_complete_nodes() { # precedence over the environment setting. __docker_services() { local format='{{.Name}}' # default: service name only - [ "${DOCKER_COMPLETION_SHOW_SERVICE_IDS}" = yes ] && format='{{.ID}},{{.Name}}' # ID & name + [ "${DOCKER_COMPLETION_SHOW_SERVICE_IDS}" = yes ] && format='{{.ID}} {{.Name}}' # ID & name if [ "$1" = "--id" ] ; then format='{{.ID}}' # IDs only