delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/26/13:12: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://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <5.1.0.14.2.20020326125717.05f92520@lnxmain>
X-Sender: roland AT lnxmain
Date: Tue, 26 Mar 2002 13:07:50 -0500
To: cygwin AT cygwin DOT com
From: Roland Glenn McIntosh <roland AT steeltorch DOT com>
Subject: Re: .bashrc not getting sourced?
In-Reply-To: <3CA0A9BE.10707@cportcorp.com>
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020326084459 DOT 00acc6b8 AT pop3 DOT cris DOT com>
Mime-Version: 1.0

I searched the archives and found a note from Larry suggesting that I review the archives for 12-03-2001.  I did this for all of Nov, Dec, and Jan and did not find at least two mentions of the problem as he suggested.

My question is pretty simple:  is editing the /etc/profile the recommended way to get my ~/.bashrc file sourced?  And if not, what is.

It should be noted that I found a message by Gary R. Van Sickle suggesting that .bash_profile might be a better way to do things, but this doesn't directly answer my question.

-rgm

At 12:02 PM 03.26.2002 -0500, you wrote:
>IIRC, if you check the archives, you should find that the behavior of sourcing the .bashrc file in /etc/profile was discontinued in later cygwin releases. The fact that you have it from over a year ago is probably because the cygwin install does not overwrite files that have been modified or exist previously.
>
>HTH,
>Peter
>
>>>
>>>I just did a recent brand new install yesterday and I noticed that /etc/profile no longer contains a line like:
>>>
>>>        test -f ./.bashrc && . ./.bashrc
>>>
>>>It took me a second to figure out why .bashrc wasn't getting read (I thought it happened automatically by the shell) until I compared it to an older "working" cygwin install.
>>>
>>>Is there a specific reason for that missing line in /etc/profile, or could it have been an oversight?  I did notice that my redhat 7 system's /etc/profile doesn't seem to include such a line.
>>>-rgm




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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