Index: utils/bash-autocomplete.sh =================================================================== --- utils/bash-autocomplete.sh +++ utils/bash-autocomplete.sh @@ -38,7 +38,7 @@ # expand ~ to $HOME eval local path=${COMP_WORDS[0]} - flags=$( "$path" --autocomplete="$arg" 2>/dev/null | sed -e 's/\t.*//' ) + flags=$( "$path" --autocomplete="$arg" 2>/dev/null | perl -p -e 's/\t.*//' ) # If clang is old that it does not support --autocomplete, # fall back to the filename completion. if [[ "$?" != 0 ]]; then