delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/07/10:55:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-48.4 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,TW_RW,TW_WX,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-id: <4D5015F6.6030808@verizon.net>
Date: Mon, 07 Feb 2011 10:55:34 -0500
From: Gerry Reno <greno AT verizon DOT net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.7: PATH in Bash shells
References: <4D4EE981 DOT 4060309 AT verizon DOT net> <20110206191619 DOT GA6839 AT jethro DOT local DOT lan> <4D4F07FE DOT 4040902 AT verizon DOT net> <4D4F9389 DOT 4050800 AT dyximaq DOT de> <4D500DC0 DOT 2020809 AT verizon DOT net>
In-reply-to: <4D500DC0.2020809@verizon.net>
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 02/07/2011 10:20 AM, Gerry Reno wrote:
> On 02/07/2011 01:39 AM, Dirk Sondermann wrote:
>> On 02/06/11 21:43, Gerry Reno wrote:
>>   
>>>     bash-4.1$ cat /Cygwin.bat
>>>     @echo off
>>>
>>>     C:
>>>     chdir C:\cygwin\bin
>>>
>>>     REM bash --verbose --login -i
>>>     bash -i
>>>     
>> Your Cygwin.bat doesn't start bash as a login shell.
>>
>> -Dirk
>>
>>   
>
> Ok, I tried uncommenting the REM'd line and now I cannot start a shell
> at all.
>
> When I click the Cygwin icon a window pops up and in it a whole bunch of
> lines go scrolling by and at the end it says "Press any key to
> continue..." and when I press a key the window closes.
>
>
> Regards,
> Gerry
>
>

When I let it run as a login shell it appears to first be running
/etc/profile and then dies at around line 153 or so and exits the shell
which is why I get the 'pause' prompt to press any key.

The only error I noticed so far is this:

    bash: /etc/profile.d/lang.sh: Bad address
    bash: /etc/profile.d/lapack0.sh: Bad address


Which doesn't make a lot of sense:

    bash-4.1$ ls -l /etc/profile.d/
    total 8
    -rw-r--r-- 1 Administrator None 143 Jun 25  2010 lang.csh
    -rw-r--r-- 1 Administrator None 130 Jun 25  2010 lang.sh
    -rw-r--r-- 1 Administrator root 258 Aug 24 11:44 lapack0.csh
    -rw-r--r-- 1 Administrator root 470 Aug 24 11:44 lapack0.sh
    -rw-r--r-- 1 Administrator root 109 Dec  3 05:17 openssl.csh
    -rw-r--r-- 1 Administrator root  41 Dec  3 05:17 openssl.sh
    -rwxr-xr-x 1 Administrator root  74 Mar 16  2010 xinit.csh
    -rwxr-xr-x 1 Administrator root  44 Mar 16  2010 xinit.sh

Except maybe that execute permissions at not on those scripts.  But are
they supposed to have execute permissions?  Could someone check their
1.7.7 installation and let me know  what permissions are on the files in
/etc/profile.d/?



Regards,
Gerry






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