about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-03-08 07:50:29 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-03-08 07:50:29 +0000
commitf89571085a45bde423642126224911ade8192c7d (patch)
tree1dfcc816304aa280bdeb3559c97633a31de4c902 /Completion/Base
parent5942e88caf852c96ca3e4f5151eb73345c6f1491 (diff)
downloadzsh-f89571085a45bde423642126224911ade8192c7d.tar.gz
zsh-f89571085a45bde423642126224911ade8192c7d.tar.xz
zsh-f89571085a45bde423642126224911ade8192c7d.zip
Briefly enable aliases for one of the evals so that the expansion
of a $(...) or `...` properly uses normal and global aliases.
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Completer/_expand2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Base/Completer/_expand b/Completion/Base/Completer/_expand
index 4bb9ab777..89cc969c5 100644
--- a/Completion/Base/Completer/_expand
+++ b/Completion/Base/Completer/_expand
@@ -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