delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/20/14:20:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <9F3F9D47408B7144B594DBBF67F77BAC010833C7@eusrcmw720.eamcs.ericsson.se>
From: "Jason Fritz (CO/EWU)" <jason DOT fritz AT ericsson DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: 1.5.18-1: cygwin.bat/bash fails after installing Cygwin
Date: Thu, 20 Oct 2005 13:19:45 -0500
MIME-Version: 1.0

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

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.

> 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?  I think from the info I posted above that it's clearly not working as intended.

Thank you for your help so far, Igor.
- Jason Fritz

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