Skip to content

Commit 90bebc0

Browse files
Rollup merge of rust-lang#154420 - dingxiangfei2009:extended-regex-grep, r=jieyouxu
Use extended regex syntax ... and match on optional minor version for python.
2 parents 2ff9f8d + f33b5cb commit 90bebc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ for SEARCH_PYTHON in $SEARCH; do
4646
fi
4747
done
4848

49-
python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]+$' | head -n1)
49+
python=$(bash -c "compgen -c python" | grep -E '^python[2-3](\.[0-9]+)?$' | head -n1)
5050
if ! [ "$python" = "" ]; then
5151
exec "$python" "$xpy" "$@"
5252
fi

0 commit comments

Comments
 (0)