From: "C. v. Stuckrad" <stucki@math.fu-berlin.de>
To: zsh-users@math.gatech.edu
Subject: How to complete commands on a different/generated PATH ?
Date: Wed, 28 Aug 1996 17:22:06 +0200 (MET DST) [thread overview]
Message-ID: <Pine.GSO.3.94.960828170751.13034J-100000@petzval> (raw)
HI!
I installed zsh3 on our systems, and therefore went through
the new compctl examples. I am missing a special kind of completion
which might be trivial, but I could not (yet :-) find out:
We use a set of macros 'x11x' 'ow3x' '...some_other_s', which
manipulate the environment to start a program in the 'correct world'.
('x11x' starts original X11-Progs under Openwin, 'ow3x' the other way...
all those reorder the PATH to 'prefer' the given environment).
Now if you do NOT have X11 in YOUR PATH and run a completion on the
partial command 'x11x x<tab>' completion does not search in the correct
place. I would need to 'pre-evaluate' the 'x11x' macro to get it's new
PATH and glob THEREIN! OK, getting that PATH might be done simply by
'x11x echo "$path"' as I asume there is an evaluate in 'x11x'.
BUT HOW TO 'first change the PATH, then glob on the new PATH' ?
Thanks for a HINT , your's Stucki
Christoph von Stuckrad * * | talk to | <stucki@math.fu-berlin.de> \
Freie Universitaet Berlin |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV |\ * | 'stucki' | Tel:+49 30 838-7545{9|8} |
Arnimallee 2-6/14195 Berlin * * | on IRC | Fax:+49 30 838-5913 /
next reply other threads:[~1996-08-28 15:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-28 15:22 C. v. Stuckrad [this message]
1996-08-28 17:49 ` Bart Schaefer
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=Pine.GSO.3.94.960828170751.13034J-100000@petzval \
--to=stucki@math.fu-berlin.de \
--cc=zsh-users@math.gatech.edu \
/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).