delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/02/04:14:49

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: Giorgos Tzampanakis <Giorgos DOT Tzampanakis AT gmail DOT 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
X-No-Archive: yes
User-Agent: slrn/0.9.9p1 (CYGWIN_NT-6.0)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019