Sorry for a typo. According to https://zsh.sourceforge.io/Doc/Release/Completion-System.html#Completion-Functions's _arguments, --long-option[description of option]:name of argument:completion method should have 2 :s, not 3. Anyone can use patchelf --set-interpreter <TAB> to trigger this bug. And patchelf --print-* should be followed by a elf name: print some information about this elf then exit. So it shouldn't complete any other option (-), but should complete elf name (not (- : *), (*) will stop complete elf name).
Sorry for a typo. According to https://zsh.sourceforge.io/Doc/Release/Completion-System.html#Completion-Functions's
_arguments
,--long-option[description of option]:name of argument:completion method
should have 2:
s, not 3. Anyone can usepatchelf --set-interpreter <TAB>
to trigger this bug. Andpatchelf --print-*
should be followed by a elf name: print some information about this elf then exit. So it shouldn't complete any other option(-)
, but should complete elf name (not(- : *)
,(*)
will stop complete elf name).