use 'pwsh' for uniformity

This commit is contained in:
Ivan Pozdeev 2025-12-20 22:07:49 +03:00
parent 61b2726098
commit de9fa19796
No known key found for this signature in database
GPG key ID: FB6A628DCF06DCD7

View file

@ -128,14 +128,14 @@ hash -r 2>/dev/null || true"
assert [ -x "${PYENV_ROOT}/shims/python" ]
}
@test "sh-rehash in powershell" {
@test "sh-rehash in pwsh" {
create_executable "3.4" "python"
PYENV_SHELL=pwsh run pyenv-sh-rehash
assert_success "&pyenv rehash"
}
@test "sh-rehash in powershell (integration)" {
command -v pwsh >/dev/null || skip "-- powershell not installed"
@test "sh-rehash in pwsh (integration)" {
command -v pwsh >/dev/null || skip "-- pwsh not installed"
create_alt_executable_in_version "3.4" "python"
PYENV_SHELL=pwsh run pwsh -nop -c 'iex ((&pyenv-sh-rehash) -join "\`n")'
assert_success