From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24091 invoked by alias); 20 Oct 2005 18:44:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23950 invoked by uid 22791); 20 Oct 2005 18:44:04 -0000 Received: from slinky.cs.nyu.edu (HELO slinky.cs.nyu.edu) (128.122.20.14) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 20 Oct 2005 18:44:04 +0000 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id j9KIi2r4007297; Thu, 20 Oct 2005 14:44:02 -0400 (EDT) Date: Thu, 20 Oct 2005 18:44:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: "Jason Fritz (CO/EWU)" cc: cygwin@cygwin.com Subject: RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin In-Reply-To: <9F3F9D47408B7144B594DBBF67F77BAC010833C7@eusrcmw720.eamcs.ericsson.se> Message-ID: References: <9F3F9D47408B7144B594DBBF67F77BAC010833C7@eusrcmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-10/txt/msg00654.txt.bz2 On Thu, 20 Oct 2005, Jason Fritz (CO/EWU) wrote: > > On Thu, 20 Oct 2005, Igor Pechtchanski wrote: > > > > Yes, but that doesn't guarantee that you would *run* that version. > > Again, the Cygwin version of bash will *not* look for > > /usr/local/etc/profile.global -- that message comes from some other > > bash. The analysis is correct, AFAICS. > > > > One thing to try is to change the last line of your cygwin.bat to > > > > c:\cygwin\bin\bash --login -i > > > > and see if that solves your problem (with the original config)... > > I did as you suggested and the problem still happens. I backed out my > environment variables changes (to HOME and PATH), and ran cygwin.bat > as-is and reverified that the problem happened again. Then I edited > cygwin.bat as you suggested and reran the script with the same result. > Here's the shell output for reference: > ----- > C:\cygwin>type cygwin.bat > @echo off > > C: > chdir C:\cygwin\bin > > C:\cygwin\bin\bash --login -i > > C:\cygwin>cygwin.bat > /usr/bin/bash: can't find configuration file /usr/local/etc/profile.global; exiting. > ----- Hmm, very weird. According to a couple of Google searches, the above looks like a message from UWin startup files -- Cygwin does *not* have a profile.global, and the Cygwin bash won't look for anything in /usr/local/etc by default. Do you, perhaps, have a c:\.bashrc or c:\.bash_profile or c:\.profile left over from a prior installation of UWin? > As a side note, I've never installed bash in another form on my PC and > running "bash" from C:\ in a DOS prompt does not work. > > > > After contacting Chloe directly, > > > > Ugh. She was way too polite. Unsolicited private emails to > > random list > > posters are highly discouraged -- the Cygwin mailing list is > > the place to > > ask for help. > > Well, with all due respect, I can see that contacting Cygwin maintainers > and developers is a Bad Thing (tm), but contacting ordinary users is no > mortal sin. I was polite to her and she was polite in return. I > followed up by posting to the mailing list so the info would not be > lost. Fair enough. But sending email directly to the list lets you skip a step in the above process... > > I suspect you're still not running the official Cygwin bash -- it > > should set HOME automatically. As I said above, try forcing the > > Cygwin bash by specifying the path to it explicitly. > > I don't know much about the implementation of Cygwin bash, but perhaps > it has a bug and it's not setting HOME like it should? Just for reference, the way it *should* set $HOME is described in your /etc/passwd (if you don't have the latest, copy it from /etc/defaults/etc/passwd). > I think from the info I posted above that it's clearly not working as > intended. Hmm, it would be interesting to see what "echo $HOME" says in a bash session that you start using "c:\cygwin\bin\bash --norc"... > Thank you for your help so far, Igor. You're welcome -- it's a curious problem, and I'd like to get to the bottom of this. Also, I don't think you've ever posted the output of "cygcheck -svr" on your system (in its non-working configuration), as requested in . Please make sure you *attach* the output as an uncompressed text attachment, rather than include it inline. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/