delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/01/13:50:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <5069D7CA.6070902@cornell.edu>
Date: Mon, 01 Oct 2012 13:50:02 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: bash very slow in cygwin 1.7.16-1 Win7/64 bit
References: <5068AEF2 DOT 6040006 AT rosi-kessel DOT org> <k4c63l$t93$1 AT ger DOT gmane DOT org> <CAJCATqy_2TG8S=yWJ6uZUMvwKDSgZzsKRw+jfStN8KbVT1Dxgw AT mail DOT gmail DOT com> <5069BE59 DOT 5030303 AT malth DOT us> <CAJCATqw0nRKs_aC+xsM0uPH4-gnFmSAyfranvGRiMtwcb-5vAA AT mail DOT gmail DOT com> <5069C743 DOT 5090908 AT cornell DOT edu> <CAJCATqx6Diwpid6TCkkrDaC5QErRdh7jAQ_KJ5Q7ajNzB-ddDw AT mail DOT gmail DOT com> <5069D273 DOT 6060507 AT cornell DOT edu> <CAJCATqyeGRFCde0sgj4QRZ9LH2JW4kb4meGgcLgvFmf-AEhOUg AT mail DOT gmail DOT com>
In-Reply-To: <CAJCATqyeGRFCde0sgj4QRZ9LH2JW4kb4meGgcLgvFmf-AEhOUg@mail.gmail.com>
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown AT cornell DOT edu - Mon Oct 1 13:49:59 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/1/2012 1:32 PM, Adam Kessel wrote:
> On Mon, Oct 1, 2012 at 1:27 PM, Ken Brown <kbrown AT cornell DOT edu> wrote:
>> In a standard Cygwin install, the script
>> /etc/postinstall/000-cygwin-post-install.sh runs 'mkpasswd -l -c >
>> /etc/passwd', which sets the home directory for each user.  Normally this is
>> /home/username, but you can check it by looking at /etc/passwd.  Then the
>> first time you start a shell, /etc/profile creates the home directory (as
>> specified in /etc/passwd) if it doesn't exist.  This assumes that HOME is
>> not set in the Windows environment.  Are you seeing something different?
>
> Yes. I just installed from scratch -- download setup.exe and specify a
> new directory for install; then installed only bash and its
> prerequisites. When I run the default cygwin.bat in the new directory,
> I get:
>
> bash-4.1$ pwd
> /usr/bin
> bash-4.1$ echo $HOME
> /home/avk
> bash-4.1$ cd
> bash: cd: /home/avk: No such file or directory

So it appears that /etc/profile is not being run, since it would give 
you the message "/home/avk could not be created" if it tried and failed 
to create /home/avk.  Also, it would set PS1, giving you a different 
prompt than the one above.  I don't know what might cause /etc/profile 
to fail to run.

BTW, cygwin.bat is no longer the recommended way to start a Cygwin 
shell.  If you ask setup.exe to create a shortcut, it will create one 
that starts mintty.  But I doubt if this is related to your problem.

Two people in this thread have suggested that you check for BLODA, but 
you haven't responded to that.  Also, you haven't yet attached cygcheck 
output as requested at

   http://cygwin.com/problems.html

Ken

Ken


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019