From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16170 invoked from network); 7 Jun 2000 16:06:11 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2000 16:06:11 -0000 Received: (qmail 28755 invoked by alias); 7 Jun 2000 16:05:41 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3126 Received: (qmail 28748 invoked from network); 7 Jun 2000 16:05:41 -0000 Message-ID: <393E762D.1C421FC3@ie.oracle.com> Date: Wed, 07 Jun 2000 17:19:57 +0100 From: Pascal Byrne X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: zsh-users@sunsite.auc.dk Subject: Re: huge number of stats makes completion SLOOOW References: Content-Type: multipart/mixed; boundary="------------5ADAB2ECE3618BFB6942FE5D" This is a multi-part message in MIME format. --------------5ADAB2ECE3618BFB6942FE5D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Why not put /usr/bin at the front of your path? "Jesper K. Pedersen" wrote: > Hi. > > When I do the following: > cd sp > > It takes most of ten seconds before it completes for me. I tried to do an > strace on it, and I saw the following: > > [pid 22114] access("/home/blackie/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/usr/X11R6/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/gnupg-1.0.1/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/gimp-1.1.15/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/gtk+-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/glib-1.2.6/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/ssh-2.0.13/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/photopc-3.01/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/gtimer-1.1.4/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/Acrobat4/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/yard-1.17/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/usr/openwin/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/cdsession/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > [pid 22114] access("/opt/mosml/bin/cd", X_OK) = -1 ENOENT (No such file or directory) > > > My path is quite long, so there is a huge number of directories it must go > through. > > Is there an option I can set, which makes my cd command faster? > > Kind Regards Jesper. --------------5ADAB2ECE3618BFB6942FE5D Content-Type: text/x-vcard; charset=us-ascii; name="pbyrne.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Pascal Byrne Content-Disposition: attachment; filename="pbyrne.vcf" begin:vcard n:Byrne;Pascal x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:pbyrne@ie.oracle.com title:WPTG Engineering end:vcard --------------5ADAB2ECE3618BFB6942FE5D--