We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 010710b + 3ae7f03 commit 7b943bcCopy full SHA for 7b943bc
src/etc/cargo.bashcomp.sh
@@ -125,7 +125,7 @@ __cargo_commands=$(cargo --list 2>/dev/null | tail -n +2)
125
_locate_manifest(){
126
local manifest=`cargo locate-project 2>/dev/null`
127
# regexp-replace manifest '\{"root":"|"\}' ''
128
- echo ${manifest:9:-2}
+ echo ${manifest:9:${#manifest}-11}
129
}
130
131
# Extracts the values of "name" from the array given in $1 and shows them as
@@ -238,6 +238,8 @@ _toolchains(){
238
result+=("+${BASH_REMATCH[1]}-${BASH_REMATCH[3]}")
239
fi
240
result+=("+$line")
241
+ else
242
+ result+=("+$line")
243
244
done <<< "$toolchains"
245
echo "${result[@]}"
0 commit comments