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

Re: Completion for backslashed commands

Vincent Lefevre wrote:
> Hi,
> If I type:
>   \gv file[TAB]
> I get the conventional filename completion instead of the completion
> specific to gv. Is it a bug or is there a way to make this work?

Well, this would fix it.  But (i) I have no idea if it's intentional (it
seems unlikely in this case) (ii) I bet there other places needing the
same treatment for consistency.

Index: Completion/Base/Core/_dispatch
RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_dispatch,v
retrieving revision 1.3
diff -u -r1.3 _dispatch
--- Completion/Base/Core/_dispatch	17 Mar 2002 18:03:09 -0000	1.3
+++ Completion/Base/Core/_dispatch	24 May 2004 11:34:18 -0000
@@ -40,6 +40,7 @@
 for str in "$@"; do
   [[ -n "$str" ]] || continue
+  str=${(Q)str}

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


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