Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Expanding "foo\ *"
- X-seq: zsh-workers 13598
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: Expanding "foo\ *"
- Date: Sun, 11 Mar 2001 18:00:36 +0000
- In-reply-to: <Pine.LNX.4.30.0103101930460.30357-100000@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.30.0103101930460.30357-100000@xxxxxxxxxxxxxxx>
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