Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _a2ps & _arguments
- X-seq: zsh-workers 9261
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: _a2ps & _arguments
- Date: Fri, 7 Jan 2000 11:32:44 +0100 (MET)
- In-reply-to: Peter Stephenson's message of Thu, 06 Jan 2000 20:17:35 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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