Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Global-alias problem with _expand



Wayne Davison wrote:

> Global aliases can cause a problem in the _expand completer:
> 
> % zsh -f
> 
> % autoload -U compinit
> % compinit
> % zstyle ':completion:*' completer _expand
> % alias -g T='|tail'
> % l T<TAB>
> _expand:-1: parse error near `|'

Rats. Look:

  % alias -g 'T=|foo'
  % eval 'exp=( T )'
  zsh: parse error near `|'

Anyone know how to avoid that?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author