[Tests] avoid using shopt in zsh
parent
ad1110ef1a
commit
c1150c41ab
|
@ -19,8 +19,14 @@ WGET_EXPECTED_INFO="$(which wget)"
|
|||
cleanup
|
||||
|
||||
# 2. test aliased wget
|
||||
shopt -s expand_aliases
|
||||
# enable expand_aliases to make alias working in interactive shell
|
||||
|
||||
# enable expand_aliases/aliases to make alias work in interactive shell
|
||||
if nvm_has shopt; then
|
||||
shopt -s expand_aliases
|
||||
elif nvm_has setopt; then
|
||||
setopt aliases
|
||||
fi
|
||||
|
||||
alias wget="wget -V"
|
||||
WGET_COMMAND_INFO="$(nvm_command_info wget)"
|
||||
WGET_EXPECTED_INFO="$(which wget) (wget -V)"
|
||||
|
|
Loading…
Reference in New Issue