tests: parameter-to-global-alias: Fix a false positive failure when 'x' happens to be a valid external command name.
Reported on issue #757 along with other issues.
This commit is contained in:
		
							parent
							
								
									e9cad1493f
								
							
						
					
					
						commit
						6d5372a937
					
				| 
						 | 
				
			
			@ -28,6 +28,10 @@
 | 
			
		|||
# vim: ft=zsh sw=2 ts=2 et
 | 
			
		||||
# -------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
if type x >/dev/null; then
 | 
			
		||||
  skip_test="Test is written on the assumption that 'x' is not a valid command name, but that assumption does not hold"
 | 
			
		||||
  return 0
 | 
			
		||||
fi
 | 
			
		||||
alias -g x=y
 | 
			
		||||
local s=x
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue