X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0	tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Giorgos Tzampanakis <Giorgos.Tzampanakis@gmail.com>
Subject: bash: sometimes ~ and $HOME contain different values
Date: Tue, 2 Nov 2010 08:14:18 +0000 (UTC)
Lines: 11
Message-ID: <iaoh8q$i1o$1@dough.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-No-Archive: yes
User-Agent: slrn/0.9.9p1 (CYGWIN_NT-6.0)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

The final line of my .bashrc is:

export HOME=foo

where foo is a directory other than /home/myusername.

When I start bash, HOME and ~ contain the same value, foo. After I
have worked on bash for a while, launching programs (mainly slrn and
irssi), ~ will revert to /home/myusername while HOME stays at foo.

Why does this happen? Is it a bug?


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

