Bug 12644

Summary: syntax error in fetchmail completion fle
Product: Sisyphus Reporter: viy <viy>
Component: zshAssignee: Fr. Br. George <george>
Status: CLOSED WORKSFORME QA Contact: qa-sisyphus
Severity: minor    
Priority: P2 CC: arseny, george
Version: unstable   
Hardware: all   
OS: Linux   

Description viy 2007-08-28 12:06:55 MSD
$ fetchmail -f<TAB> .fetc 
_arguments:comparguments:303: invalid option definition: --[fetch]all[получение
старых и новых сообщений]

Steps to Reproduce:
1. fetychmail -f
2. press <TAB>
3.
Comment 1 Sir Raorn 2008-12-21 02:12:15 MSK
"""
     In addition to options, `_arguments --' will try to deduce the
     types of arguments available for options when the form `--OPT=VAL'
     is valid. ...
"""

Оно криво парсит --[foo]barб когда автором подразумеваются две опции --foobar и --bar.
Comment 2 Sir Raorn 2009-04-12 02:43:18 MSD
$ fetchmail --fet<Tab>
---- option ----
--fetchall        -- retrieve old and new messages
--fetchdomains    -- fetch mail for specified domains
--fetchlimit      -- set fetch limit for server connections
--fetchsizelimit  -- set fetch message size limit
--fetchmailrc
$ fetchmail --a<Tab>
---- option ----
--all             -- retrieve old and new messages
--antispam        -- ,   set antispam response values
--auth
$ rpm -q zsh
zsh-4.3.9-alt1
Comment 3 viy 2009-04-12 21:06:47 MSD
заодно бы и в 4.1 выложить -- там как раз битая сборка.