X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,TW_RX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com connect(): No such file or directory From: Oleksandr Gavenko Subject: bash -i with installed and enabled bash_completion starting too slow Date: Fri, 07 May 2010 11:08:37 +0300 Lines: 32 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com from sh I run: sh-3.2$ time bash -i -c echo real 0m0.218s user 0m0.062s sys 0m0.016s sh-3.2$ echo ". /etc/bash_completion" >~/.bashrc # enable completion sh-3.2$ time bash -i -c echo real 0m2.657s user 0m0.743s sys 0m1.308s I like completion. I wrote into ~/.Xdefaults ! By default rxvt start shell without args, so it interactive. ! But if it also login shell ! then ~/.bashrc will not be read. Awful! Rxvt*loginShell: false and set SHELL=/bin/bash. By Win-R rxvt I got bash prompt - but with useful bash completion it starts too slow for interactive use (open rxvt, type several commands and exit). This problem especially actual in case of using TAB completion for command at start of bash. I wait for about 4 second to get list of executable. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple