From: Wayne Davison <wayned@users.sourceforge.net>
To: Barton Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: problem with _expand (I think)
Date: Sat, 25 Feb 2006 01:36:18 -0800 [thread overview]
Message-ID: <20060225093618.GA8357@dot.blorf.net> (raw)
In-Reply-To: <1140828995.123EA699@fb8.dngr.org>
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
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..
[-- Attachment #2: alias-tweak.diff --]
[-- Type: text/plain, Size: 439 bytes --]
--- 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
next prev parent reply other threads:[~2006-02-25 9:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 22:20 Wayne Davison
2006-02-25 0:56 ` Barton Schaefer
2006-02-25 9:36 ` Wayne Davison [this message]
2006-03-08 7:57 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060225093618.GA8357@dot.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).