delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <D26DC1460B110E4C81E92179DB21277F01A3EEEC AT caex1 DOT ca DOT metsci DOT com> |
Subject: | RE: bash init failing on cygwin terminal launch |
Date: | Wed, 13 Feb 2008 20:41:39 -0000 |
Message-ID: | <01b601c86e80$d54de3e0$2e08a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <D26DC1460B110E4C81E92179DB21277F01A3EEEC@caex1.ca.metsci.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 13 February 2008 20:35, Rowe, Thomas wrote: > 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. I reckon that /etc/profile ends just after "++ id -ng" (fell through the switch without hitting any of the cases) and you're now in ~/.bash_profile, which includes these lines right at the start ... # source the users bashrc if it exists if [ -e "${HOME}/.bashrc" ] ; then source "${HOME}/.bashrc" fi Hopefully the quotes there will protect the space in $HOME, and it just means that you need to d2u ~/.bash_profile. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |