Skip to content

Commit

Permalink
tests: parameter-to-global-alias: Fix a false positive failure when '…
Browse files Browse the repository at this point in the history
…x' happens to be a valid external command name.

Reported on issue #757 along with other issues.
  • Loading branch information
danielshahaf committed Aug 11, 2020
1 parent e9cad14 commit 6d5372a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions highlighters/main/test-data/parameter-to-global-alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6d5372a

Please sign in to comment.