From 7de411e6c32a1800504ea4ad812e6153c3be1ba5 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 5 Sep 2017 12:02:10 +0000 Subject: [PATCH] cli-completion: work on the Stretch bash git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3929 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- docs/cli-completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli-completion b/docs/cli-completion index 84ed3f8..cbc7d7d 100644 --- a/docs/cli-completion +++ b/docs/cli-completion @@ -31,7 +31,7 @@ _cli.php() opts="$opts $LISTCLASSESSLASH " - read -r LISTCLASSESLINE <<< ${LISTCLASSES} + LISTCLASSESLINE=$(tr '\n' ' ' <<< ${LISTCLASSES}) if [ "$3" == "-list" ]; then # Do not take any option COMPREPLY=() @@ -78,7 +78,7 @@ $LISTCLASSESSLASH [ "${COMP_WORDS[3]+1}" != "" ]; then # Class + method + first parameter available local LISTMETHODS=$($1 $EXPERT -listmethodsonly "${CLASS}") - read -r LISTMETHODSLINE <<< ${LISTMETHODS} + LISTMETHODSLINE=$(tr '\n' ' ' <<< ${LISTMETHODS}) METHOD=${COMP_WORDS[2]} if [[ " ${LISTCLASSESLINE} " =~ " ${CLASS} " ]] && [[ " ${LISTMETHODSLINE} " =~ " ${METHOD} " ]]; then