delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/13/15:41:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Subject: RE: bash init failing on cygwin terminal launch
Date: Wed, 13 Feb 2008 12:40:41 -0800
Message-ID: <D26DC1460B110E4C81E92179DB21277F01A3EEF0@caex1.ca.metsci.com>
From: "Rowe, Thomas" <rowet AT ca DOT metsci DOT com>
To: <cygwin AT cygwin DOT com>
X-Sanitizer: Metron HTML and MIME filter
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m1DKf8Xe027623

>>> When I launch a cygwin terminal I see this line:
>>>        : No such file or directoryand Settings/rowet/.bashrc
>>> 
>>> Then I am dumped into a bash prompt where .bashrc hasn't been read
and I
>>> think the normal bash config stuff hasn't finished either.  If I
type
>>> 'bash[return]' from this screwed-up login everything works fine.
>>> 
>>> Obviously something is tripping up on the space in
%HOME%='C:\Documents
>>> and Settings\rowet'.  
>>
>>
>> Maybe so, but you also got a CR lineending in there, which is why the
error
>> message wrote over itself in that characteristic way.  You probably
edited
>> /etc/profile or one of the other scripts using
notepad/wordpad/similar.  
>> 
>> To figure out exactly where, open a cmd.exe shell, cd into your
cygwin bin
>> dir, and run "bash --login -i -x".  You should be able to follow
what's
>> getting invoked when that way; then just run d2u on the offending
script.
>
> The tail of `bash --login -i -x` is:
> 	+ cd '/cygdrive/c/Documents and Settings/rowet'
> 	+ case `id -ng` in
> 	++ id -ng
> 	' . '/cygdrive/c/Documents and Settings/rowet/.bashrc
> 	: No such file or directory and Settings/rowet/.bashrc
> 
> I cannot figure out the failing script from this.  The `id -ng` stuff
is from the end of /etc/profile, so I guess /etc/profile gets through
OK.  I ran dos2unix against /etc/profile and .bashrc to no effect.
>

Doh. Nevermind.  dos2unix run against ~/.profile fixed the problem.
Thank you David Korn.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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