gentoo / gentoo-zsh-completions

[ORIGIN] Gentoo specific zsh completion support (ebuild, emerge, eselect, ...)
Other
36 stars 19 forks source link

_arguments:comparguments:312: invalid argument: (--jobs).[Number of packages to build simultaneously]:jobs:({1..2}) #1

Closed aayla-secura closed 9 years ago

aayla-secura commented 9 years ago

In file _portage, on line 95, --jobs is missing the short option -j and is causing an error (because a single option is wrapped in {} for brace expansion

--- _portage 2014-11-24 11:02:22.227073039 +0200 +++ /usr/share/zsh/site-functions/_portage 2014-11-24 11:01:04.139638074 +0200 @@ -92,7 +92,7 @@ "($noask_opts)"{-A,--alert}"[Add a terminal bell to all interactive prompts]" "--ignore-default-opts[Ignore EMERGE_DEFAULT_OPTS]" "--moo[Have you mooed today?]"

msva commented 9 years ago

short option for jobs was removed "just as planned", not accidentally. Portage understand it's value only if it (-j) is separated from other short options. And zsh don't count -jN as N is a value of -j, but not an option. So, I bet it is not that hard to add '-jN' by hand, if needed, or use --jobs.

And main issue (typo, generally) is fixed, thanks.