Explorar el Código

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.
pull/761/head
Daniel Shahaf hace 4 años
padre
commit
6d5372a937
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      highlighters/main/test-data/parameter-to-global-alias.zsh

+ 4
- 0
highlighters/main/test-data/parameter-to-global-alias.zsh Ver fichero

@ -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

Cargando…
Cancelar
Guardar