Hello, thanks for your message. Since I am happy with the solution of using _gnu_generic for grep completion my interest is mostly for the mechanics of the problem. Basically I wonder if it is up to the completer to choose whether to do interactive menu completion, any thoughts on this? Pier Paolo Grassi linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO Il giorno ven 22 mag 2020 alle ore 20:36 Jun. T < takimoto-j@kba.biglobe.ne.jp> ha scritto: > > > 2020/05/23 1:12, Pier Paolo Grassi wrote: > > > > echo $ZSH_VERSION > > 5.1.1 > > I think the problem is in _grep in that old version of zsh. > > You can either > (1) upgrade zsh (probably zsh-5.4 or later works), or > > (2) download the latest zsh tarball, extract Completion/Unix/Command/_grep > and use it, or > > (3) copy /usr/share/zsh/5.1.1/functions/_grep and modify the following line > (around line 13) > '(-e --regexp -f --file)1: :_guard "^--*" pattern' > to > '(-e --regexp -f --file)1: :_guard "^-*" pattern' > and use it. >