Bug#847203: systemd: journalctl zsh completion fails with RC_QUOTES

Vincent Lefevre vincent at vinc17.net
Wed Dec 7 16:57:00 GMT 2016


On 2016-12-07 10:28:45 -0300, Felipe Sateler wrote:
> Hi ZSH Maintainers,

Not sure they are reading (or have they been Bcc'ed?), but I started
a thread in zsh-workers:

  http://www.zsh.org/mla/workers/2016/msg02588.html

hoping the issue could be solved in zsh itself. But according to the
discussion, this is not simple because there are other places where
one wants the completion system to be sensitive to the user's choice
of options.

At least in the mean time, removing the repeating single quote would
be the simplest solution, IMHO.

Note: If for some reason, one wants the single quotes to appear (e.g.
because the file is automatically generated and the single quotes are
not removable), then one could write $'' between them:

cventin:~> printf %s 'ab''cd' | hd
00000000  61 62 27 63 64                                    |ab'cd|
00000005
cventin:~> printf %s 'ab'$'''cd' | hd
00000000  61 62 63 64                                       |abcd|
00000004

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




More information about the Pkg-systemd-maintainers mailing list