From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9057 invoked from network); 16 Jan 2005 19:35:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Jan 2005 19:35:25 -0000 Received: (qmail 7430 invoked from network); 16 Jan 2005 19:35:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Jan 2005 19:35:18 -0000 Received: (qmail 27659 invoked by alias); 16 Jan 2005 19:35:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8381 Received: (qmail 27643 invoked from network); 16 Jan 2005 19:35:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Jan 2005 19:35:09 -0000 Received: (qmail 6408 invoked from network); 16 Jan 2005 19:35:09 -0000 Received: from smtp.tecnet.com.uy (200.2.48.56) by a.mx.sunsite.dk with SMTP; 16 Jan 2005 19:35:05 -0000 Received: from terminus.empire.org.uy (r200-40-237-216-dialup.adsl.anteldata.net.uy [200.40.237.216]) by smtp.tecnet.com.uy (8.12.10/8.12.10) with ESMTP id j0GJV9d8012267 for ; Sun, 16 Jan 2005 17:31:11 -0200 From: Toshiro To: zsh-users@sunsite.dk Subject: Re: bug (feature?) in zsh Date: Sun, 16 Jan 2005 17:30:10 -0200 User-Agent: KMail/1.7.1 References: <200501160216.15097.toshiro@internet.com.uy> <1050116063300.ZM23267@candle.brasslantern.com> <1105860898.14494.0.camel@amethyst.cql.com> In-Reply-To: <1105860898.14494.0.camel@amethyst.cql.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501161730.10724.toshiro@internet.com.uy> X-TN_AV: 4 X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 > > } 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.