#256895 zsh: [compctl] completion fails for programs with spaces in the name

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Carl Witty
Date:
2013-11-08 02:57:08 UTC
Severity:
minor
#256895#5
Date:
2004-06-29 18:32:49 UTC
From:
To:
The Debian package clc-intercal includes a program named
  /usr/bin/oo, ick
(with a space in its name).

If I type:
  flare% oo,\
("flare% " is my prompt; there is a space after the backslash above)
and then press TAB, this is completed to
  flare% oo, ick
; if I then press ENTER, it says:
  zsh: command not found: oo,
On the other hand, if I continue typing to get
  flare% oo,\ ick
(without trying completion), and then press ENTER, the program executes
correctly.

#256895#10
Date:
2004-07-03 13:24:29 UTC
From:
To:
This only seems to affect the old-style completion. So though it remains
a bug, you can avoid it by using the new system - add these lines to
your .zshrc:
  autoload -U compinit
  compinit