Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: problem with _expand (I think)
- X-seq: zsh-workers 22301
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Barton Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: problem with _expand (I think)
- Date: Sat, 25 Feb 2006 01:36:18 -0800
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1140828995.123EA699@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060224222003.GB29221@xxxxxxxxxxxxx> <1140828995.123EA699@xxxxxxxxxxxx>
On Fri, Feb 24, 2006 at 04:56:32PM -0800, Barton Schaefer wrote:
> Perhaps _expand needs to "setopt aliases"?
Probably so.  I managed to tweak _expand to avoid the problem, but I
don't know if my change is the right solution or not.  Patch attached.
..wayne..
--- Completion/Base/Completer/_expand	21 Jan 2005 09:33:14 -0000	1.10
+++ Completion/Base/Completer/_expand	25 Feb 2006 08:28:13 -0000
@@ -85,9 +85,11 @@ if [[ "$force" = *s* ]] ||
 ###  the following expression, too.  We don't want that, but I have no
 ###  idea how to fix it.
 
+  setopt aliases
   eval 'exp=( ${${(e)exp//\\[ 	
 ]/ }//(#b)([ 	
 ])/\\$match[1]} )' 2>/dev/null
+  setopt NO_aliases
 else
   exp=( ${exp:s/\\\$/\$} )
 fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author