mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
tests: parameter-to-global-alias: Use alias name less likely to clash
This commit is contained in:
parent
f8cd0b55b3
commit
0b5b3dcc0c
@ -28,12 +28,12 @@
|
||||
# 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"
|
||||
if type global_alias >/dev/null; then
|
||||
skip_test="Test is written on the assumption that 'global_alias' is not a valid command name, but that assumption does not hold"
|
||||
return 0
|
||||
fi
|
||||
alias -g x=y
|
||||
local s=x
|
||||
alias -g global_alias=y
|
||||
local s=global_alias
|
||||
|
||||
BUFFER=$'$s'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user