mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	[Tests] avoid using shopt in zsh
This commit is contained in:
		| @@ -19,8 +19,14 @@ WGET_EXPECTED_INFO="$(which wget)" | |||||||
| cleanup | cleanup | ||||||
|  |  | ||||||
| # 2. test aliased wget | # 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" | alias wget="wget -V" | ||||||
| WGET_COMMAND_INFO="$(nvm_command_info wget)" | WGET_COMMAND_INFO="$(nvm_command_info wget)" | ||||||
| WGET_EXPECTED_INFO="$(which wget) (wget -V)" | WGET_EXPECTED_INFO="$(which wget) (wget -V)" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user