Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug (feature?) in zsh
- X-seq: zsh-users 8381
- From: Toshiro <toshiro@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: bug (feature?) in zsh
- Date: Sun, 16 Jan 2005 17:30:10 -0200
- In-reply-to: <1105860898.14494.0.camel@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200501160216.15097.toshiro@xxxxxxxxxxxxxxx> <1050116063300.ZM23267@xxxxxxxxxxxxxxxxxxxxxxx> <1105860898.14494.0.camel@xxxxxxxxxxxxxxxx>
> > } I'm using Debian unstable, zsh version 4.2.2. I've noticed that, when I
> > } install a new package that puts some program in my path (for
> > } example, /usr/bin) I can't invoke the program using completion in any
> > zsh } shell that I have opened before installing the program.
> >
> > This is almost reaching FAQ status, but isn't yet in the FAQ.
> >
> > The completion system (including compctl) uses the command hash table to
> > look up names for completion in command position, because it's expensive
> > to search the path for them. That means that if you install some new
> > piece of software, you need to run 'rehash' before the completion system
> > will see it, as you discovered.
>
> This isn't just true with zsh, it's true with lesser shells like bash or
> ksh.
I don't know what you really mean with this statement, but I can assure you
that I have to type 'rehash' to be able to see the new program in zsh; in
bash I don't have to do anything at all, the new program is available
immediately.
Toshiro.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author