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

Re: compinit causes strange tab completion on '<'



On Feb 13,  3:24am, Jeff wrote:
}
} %< ./init.d/[tab]
} gives no completion
} %< /etc/init.d/[tab]
} gives no completion

This is a problem with either the _redirect completer or the _set_command
utility funtion, depending on how you look at it.  _redirect calls
_set_command to find the name of the command to which input is being
redirected, but in this case there is none.   _set_command incorrectly
returns /etc/init.d as the command name and conseqently the completion
system tries to complete arguments for init scripts, rather than the
names of the init scripts.

I'm not immediately sure what to do about it, though.

-- 
Bart Schaefer
http://www.well.com/user/barts



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