1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 07:43:46 -05:00

Merge pull request #1350 from maxbrunet/feature/versions/dotglob

List versions starting with a dot
This commit is contained in:
Anton Petrov
2021-04-15 21:02:50 +03:00
committed by GitHub
3 changed files with 11 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ if [ -n "$include_system" ] && \
print_version system
fi
shopt -s nullglob
shopt -s dotglob nullglob
for path in "$versions_dir"/*; do
if [ -d "$path" ]; then
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
@@ -139,7 +139,7 @@ for path in "$versions_dir"/*; do
done
fi
done
shopt -u nullglob
shopt -u dotglob nullglob
if [ "$num_versions" -eq 0 ] && [ -n "$include_system" ]; then
echo "Warning: no Python detected on the system" >&2