Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _a2ps & _arguments



Peter Stephenson wrote:

> I've just installed the GNU version of a2ps and I'm getting dreck from
> _arguments when _a2ps is called, e.g.
> 
> _arguments:255: command not found: (ps|eps)
> _arguments:256: command not found: _
> _arguments:255: command not found: (ps|eps)
> _arguments:256: command not found: _
> _arguments:255: command not found: (ps|eps)
> _arguments:256: command not found: _
> _arguments:255: command not found: (ps|eps)
> _arguments:256: command not found: _
> 
> I don't know if this is _a2ps or maybe the latest changes to evals in
> _arguments.
> 
> I suppose if I want _a2ps to understand short options I should write it
> myself.

A missing backslash in _a2ps.

Bye
 Sven

diff -ru ../z.old/Completion/User/_a2ps Completion/User/_a2ps
--- ../z.old/Completion/User/_a2ps	Thu Jan  6 16:04:13 2000
+++ Completion/User/_a2ps	Fri Jan  7 11:31:38 2000
@@ -22,7 +22,7 @@
   )
 fi
 
-_arguments '*:text file:_files -g \*\~\*.\(\#i)\(ps\|eps\)' -- \
+_arguments '*:text file:_files -g \*\~\*.\(\#i\)\(ps\|eps\)' -- \
            '*\*:toggle:(yes no)' \
            '*=DIRECTION:direction:(rows columns)' \
            '*=TYPE:type:(r n nr rn any)' \

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author