mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 21:13:46 -05:00
Use read -a to split output into an array (#1450)
This commit is contained in:
@@ -20,7 +20,7 @@ elif [ "$1" = "--no-sh" ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
IFS=: paths=($PATH)
|
||||
IFS=: read -d '' -r -a paths <<<"$PATH" || true
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
|
||||
Reference in New Issue
Block a user