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

Re: Expanding "foo\ *"



On Mar 10,  7:48pm, Wayne Davison wrote:
} Subject: Expanding "foo\ *"
}
} Here's a bug with the new completion system (I'm using 4.0.1-pre2,
} but the bug predates this version):
} 
} % ls -l foo\ *<TAB>
}    (Error beep)

Try this.  There should be a space and a tab at the end of the first `+'
line in the replacement part of the hunk, in case the mail system eats it.

Index: Completion/Core/_expand
===================================================================
diff -c -r1.48 _expand
--- Completion/Core/_expand	2001/02/08 03:49:32	1.48
+++ Completion/Core/_expand	2001/03/11 17:57:34
@@ -68,7 +68,8 @@
 # Now try globbing.
 
 [[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob &&
-    eval 'exp=( ${~exp} ); exp=( ${(q)exp} )' 2>/dev/null
+    eval 'exp=( ${~exp//(#b)\\[ 	
+]/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null
 
 ### Don't remember why we once used this instead of the (q) above.
 #    eval 'exp=( ${~exp} ); exp=( ${exp//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )' 2>/dev/null

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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