delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/07/18:31:48

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
From: ericblake AT comcast DOT net (Eric Blake)
To: "Jon A. Lambert" <jlsysinc AT alltel DOT net>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: [ANNOUNCEMENT] Updated: bash-3.0-7
Date: Thu, 07 Jul 2005 22:30:44 +0000
Message-Id: <070720052230.7855.42CDAD14000452C100001EAF22069997350A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

> I just installed bash 3.0-7 and immediately noticed my colors where gone and 
> my delete key no longer worked.
> 
> Anyways I'm a bit clueless but it seems something wierd is happening to ~
> I can verify my profile is executed and my .bash_profile and .bashrc are 
> not.

Well, if your .bash_profile and .bashrc set your colors and tty settings,
and they aren't being invoked, that explains the first complaint.  As to
why they aren't invoked, you can blame that on bash not finding
~/.bash_profile due to the ~ expansion problems.  But the ~ expansion
problems is baffling me.

'man bash' states that tilde expansion (as well as the default location
of 'cd' with no arguments) is the $HOME variable if set, else the home
directory of the current login name (as determined from /etc/passwd).

Furthermore, /etc/profile states that cygwin sets HOME on startup,
based on the first working alternative of Windows HOME, /etc/passwd,
Windows HOMEDRIVE/HOMEPATH, or /.

All I can do is guess that $HOME was set incorrectly by cygwin when
you first log in, bash cached that incorrect value, and that it gets
corrected later on in the setup files before where you displayed
your environment.

What does "echo $HOME ~" print?  What does "pwd" print, both
before and after the troublesome "cd ~"?  Do you have HOME set in
a Windows environment variable?  What does
"grep jlambert /etc/passwd" print?  How about "env | grep ^HOME"?

Also, take a look at http://cygwin.com/problems.html, to provide more
information that might be useful in tracking this down.

--
Eric Blake
cygwin bash maintainer



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