Przeglądaj źródła

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 4 lat temu
rodzic
commit
6d5372a937
1 zmienionych plików z 4 dodań i 0 usunięć
  1. +4
    -0
      highlighters/main/test-data/parameter-to-global-alias.zsh

+ 4
- 0
highlighters/main/test-data/parameter-to-global-alias.zsh Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz