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

Re: killall completion



On Dec 3,  6:35am, sergio wrote:
}
} Bart Schaefer wrote:
} 
} > However, it seems that _arguments gets confused when faced with an
} > argument that resembles an option, because although the above does
} > the right thing when asked to complete several process names, and
} > also does the right thing when completing after "killall -s KILL",
} > it fails to complete after "killall -KILL".

} So what your code improves?

It offers both signals and process names when completing after "killall"
with nothing else on the line yet.

} May be the solution is to generate -SIGNALS as options?

You could try it, but I think there might be a problem because, for
example, -ABRT can be (mis)interpreted as -A -B -R -T.  This is a case
where the command's syntax conflicts with the standard option/argument
syntax that _arguments is designed to support.



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