From: Robert F Tobler <rft@raven.cg.tuwien.ac.at>
To: zsh-workers@math.gatech.edu
Subject: zsh 3.0.1 bug with named directories?
Date: Tue, 12 Nov 96 21:23:51 +0100 [thread overview]
Message-ID: <9611122023.AA25067@raven.cg.tuwien.ac.at> (raw)
I have been using the facility of zsh-3.0.0 to name directories by using a
variable assignment:
projects=/usr/local/projects
when I first introduced a number of these names in my .zshrc, they would not
be considerd for completion with ~name before changing to this directory for
the first time. For this reason I set up the following function:
namedir () { eval '$1=$2 ; if [[ ! -d ~$1 ]]; then unset $1 ; fi' }
and afterwards I could do:
namedir projects /usr/local/projects
namedir toolkits /usr/local/toolkits
and these names would then be considered for completion (forced by the d-)
using ~projects or ~toolkits.
Now if I do the same in zsh 3.0.1, I get the following message:
ray% namedir projects /usr/local/projects
zsh: no such file or directory: projects=/usr/local/projects
zsh: no such user or named directory: projects
Due to this and another problem (which I will post seperately) I have not
installed zsh 3.0.1 yet.
This is on a i386-next-nextstep3 machine, zsh compiled with gcc 2.7.2.1.
rft
------------------------------------------------------------------------
Robert F. Tobler - tel:+43(1)58801-4585,fax:5874932
Institute of Computer Graphics - mailto:rft@cg.tuwien.ac.at
Vienna University of Technology - http://www.cg.tuwien.ac.at/~rft/
next reply other threads:[~1996-11-12 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-12 20:23 Robert F Tobler [this message]
1996-11-12 20:43 ` Zoltan Hidvegi
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=9611122023.AA25067@raven.cg.tuwien.ac.at \
--to=rft@raven.cg.tuwien.ac.at \
--cc=rft@cg.tuwien.ac.at \
--cc=zsh-workers@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).