aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2014-12-13 21:40:25 -0800
committerAlex Wang <alexw@nicira.com>2014-12-13 21:47:35 -0800
commit9a8d2f8c49c28ddc77be7011748eef17d949fafe (patch)
tree7ff1b7af4020f045f7345366bd82b8bcc19f967a
parent0c7812e5ebc843fbbabfdfcdd1b21bda9759e0ed (diff)
ovs-command-completion: Fix unwanted whitespace.
This commit fixes unwanted whitespace in the ovs bash completion script output. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Joe Stringer <joestringer@nicira.com>
-rwxr-xr-xutilities/ovs-command-compgen.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-command-compgen.bash b/utilities/ovs-command-compgen.bash
index c87445a67..a515c1d84 100755
--- a/utilities/ovs-command-compgen.bash
+++ b/utilities/ovs-command-compgen.bash
@@ -371,7 +371,7 @@ kwords_to_args() {
match=
;;
esac
- match=$(echo "$match" | tr '\n' ' ' | sed -e 's/^[ \t]*//')
+ match=$(echo "$match" | tr '\n' ' ' | tr -s ' ' | sed -e 's/^[ \t]*//')
args+=( $match )
if [ -n "$_PRINTF_ENABLE" ]; then
local output_stderr=