From: Wayne Davison <wayned@users.sourceforge.net>
To: zsh-workers@sunsite.dk
Subject: problem with _expand (I think)
Date: Fri, 24 Feb 2006 14:20:03 -0800 [thread overview]
Message-ID: <20060224222003.GB29221@dot.blorf.net> (raw)
Here's something strange where a global alias of mine seems to be
skipped by _expand in certain circumstances. To duplicate this,
start with "zsh -f" and enter these commands:
autoload -U compinit
compinit
zstyle ':completion:*' completer _expand _complete
bindkey '\t' complete-word
alias -g ,f='|fgrep'
OK, that ensures that tab does not use expand-or-complete, which does
not exhibit the bug. Note that I created a global alias that lets me
type ",f" instead of "|fgrep". We also need a file named "some-file"
with the following lines in it:
foo
bar
Now let's try to use TAB to expand a back-tick expression:
echo `fgrep some-file o ,f -v a`
That outputs "foo" when run, but the expansion gets "some-file:bar"
instead of "foo" if TAB is pressed. This is apparently because the ",f"
was treated as a file, and the -v option was reordered in front of the
'o' (due to gnu's non-posix command-line parsing).
I tried this in 4.2.5 and 4.3.0-dev-5, and both fail to get this right.
FYI.
..wayne..
next reply other threads:[~2006-02-24 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 22:20 Wayne Davison [this message]
2006-02-25 0:56 ` Barton Schaefer
2006-02-25 9:36 ` Wayne Davison
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=20060224222003.GB29221@dot.blorf.net \
--to=wayned@users.sourceforge.net \
--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).