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