On 6 December 2016 at 11:13, Vincent Lefevre <vinc...@vinc17.net> wrote: > Package: systemd > Version: 232-7 > Severity: minor > Tags: upstream patch > > I've reported the following bug upstream: > > https://github.com/systemd/systemd/issues/4842 > > With the following commands after "zsh -f" > > autoload -U compinit > compinit > setopt RC_QUOTES > > the journalctl completion fails: > > cventin% journalctl [TAB] > _arguments:comparguments:319: invalid argument: (--directory -D -M --machine > --root --file)'--root=[Operate on catalog hierarchy under specified > directory]:directories:_directories > > This is probably due to the repeated single quote in: > > '(--directory -D -M --machine --root --file)''--root=[Operate on catalog > hierarchy under specified directory]:directories:_directories' \ > > in "/usr/share/zsh/vendor-completions/_journalctl". > > I suppose that the repeated single quote should be removed like in > the following line: > > '(--directory -D -M --machine --root)--file=[Operate on specified journal > files]:file:_files' \ > > At least, this is equivalent without RC_QUOTES. > I've attached the corresponding patch.
I think the better fix is to somehow make zsh use default option values when evaluating the completion functions. I see that some completions use `emulate -LR zsh` (although both -L and -R are skipped in some completions). Could you try if that fixes the issue for you? -- Saludos, Felipe Sateler _______________________________________________ Pkg-systemd-maintainers mailing list Pkg-systemd-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers