diff options
| author | Wayne Davison <wayned@users.sourceforge.net> | 2006-03-08 07:50:29 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-03-08 07:50:29 +0000 |
| commit | f89571085a45bde423642126224911ade8192c7d (patch) | |
| tree | 1dfcc816304aa280bdeb3559c97633a31de4c902 /Completion/Base | |
| parent | 22271 (diff) | |
| download | zsh-f89571085a45bde423642126224911ade8192c7d.tar zsh-f89571085a45bde423642126224911ade8192c7d.tar.gz zsh-f89571085a45bde423642126224911ade8192c7d.tar.bz2 zsh-f89571085a45bde423642126224911ade8192c7d.tar.lz zsh-f89571085a45bde423642126224911ade8192c7d.tar.xz zsh-f89571085a45bde423642126224911ade8192c7d.tar.zst 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/_expand | 2 |
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 |
