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

Re: problem with _expand (I think)



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