From 9ea667f2012b54e213385d017092a588bb96fa31 Mon Sep 17 00:00:00 2001 From: GS Date: Tue, 21 Nov 2017 21:24:24 +0100 Subject: [PATCH] Better Scriptability by Removing Unnecessary Comma in List Output --- sshch/sshch | 2 +- sshch_bash_completion.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sshch/sshch b/sshch/sshch index 3a4c104..be845d9 100755 --- a/sshch/sshch +++ b/sshch/sshch @@ -133,7 +133,7 @@ def CMDConnect(aliases, command=False): def CMDList(option, opt, value, parser): - print(', '.join(str(p) for p in conf.sections())) + print(' '.join(str(p) for p in conf.sections())) def CMDFullList(option, opt, value, parser): diff --git a/sshch_bash_completion.sh b/sshch_bash_completion.sh index c181c10..b3255fb 100644 --- a/sshch_bash_completion.sh +++ b/sshch_bash_completion.sh @@ -2,7 +2,7 @@ _sshch_complete() { local cur_word alias_list cur_word="${COMP_WORDS[COMP_CWORD]}" - alias_list=`sshch -l | sed 's/,//g'` + alias_list=`sshch -l` COMPREPLY=($(compgen -W "$alias_list" -- $cur_word)) return 0 }