delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/20/19:43:38

X-Spam-Check-By: sourceware.org
Message-ID: <43A8A522.3050209@cygwin.com>
Date: Tue, 20 Dec 2005 19:43:14 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050929 Thunderbird/1.0.7 Fedora/1.0.7-1.1.fc4 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: Farhad Tahmasebi <Farhad DOT Tahmasebi AT nasa DOT gov>
CC: cygwin AT cygwin DOT com
Subject: Re: 1.5.18: .bash_profile not being invoked
References: <00a001c605a3$9c8f8f60$742eb780 AT gsfc DOT nasa DOT gov> <43A87242 DOT 60800 AT cygwin DOT com> <011401c605b1$6892a8b0$742eb780 AT gsfc DOT nasa DOT gov> <43A888D9 DOT 5000707 AT cygwin DOT com> <015101c605bb$33035f00$742eb780 AT gsfc DOT nasa DOT gov>
In-Reply-To: <015101c605bb$33035f00$742eb780@gsfc.nasa.gov>
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

Farhad Tahmasebi wrote:
> 
> OK.  How do you determine that ~/.bash_profile isn't being run?  Is it
> run when you type 'bash -l' on the command line?  If so, you need to check
> how you're starting bash to begin with.  If not, you need to determine what
> bash thinks is your home and whether you have proper permissions.
> 
> I'm setting PATH, CDPATH, $PWD, and a few aliases. When I source (or .) 
> ~/.bash_profile, I get everything. Runnig "bash -l" also works (see below)
> $ bash -l
> /farhad>

Well your '/etc/passwd' doesn't agree with the directory you set your
HOME environment variable to.  If running "bash -l" works, that means
that either you aren't running "cygwin.bat" or it's equivalent to start
the bash shell that you're having problems with or that you're setting
HOME in a bash script that you're sourcing along the way.  Either set
HOME in your Windows environment, change '/etc/passwd' to point to your
preferred home directory (via editing or 'mkpasswd'), or use "cygwin.bat"
or comparable way to start your initial bash shell.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

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