delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/07/15:51:26

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
Reply-To: <wpmccormick AT covad DOT net>
From: "Bill McCormick" <wpmccormick AT covad DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: users and startup scripts (FAQ alert)
Date: Mon, 7 Jul 2003 14:51:03 -0500
Message-ID: <NDBBLLFMLFMANIDPNADCKECKFBAA.wpmccormick@covad.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <Pine.GSO.4.44.0307071514430.23687-100000@slinky.cs.nyu.edu>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Igor Pechtchanski
> Sent: Monday, July 07, 2003 2:25 PM
> To: Bill McCormick
> Cc: cygwin AT cygwin DOT com
> Subject: Re: users and startup scripts (FAQ alert)
>
>
> On Mon, 7 Jul 2003, Bill McCormick wrote:
>
> > My /etc/.bash_profile doesn't seem to get executed. According to
> >
> http://www.gnu.org/manual/bash-2.05a/html_chapter/bashref_6.html#SEC63 it
> > wouldn't, which is contrary to other posts I've seen and Cygwin docs. So
> > consequently, my bash.bashrc and ~/.bashrc do not get executed.
> >
> > /etc/profile does execute but where exactly is it called from?
> Is it called
> > from the executable?
>
> According to the "Bash Startup Files" section of the bash info page, bash
> looks for either [/etc/profile, ~/.bash_profile|~/.bash_login|~/.profile]
> when it's a login shell, and a [~/.bashrc] if it's a non-login shell.
> Also from there:
>
>    So, typically, your `~/.bash_profile' contains the line
>      `if [ -f ~/.bashrc ]; then . ~/.bashrc; fi'
>    after (or before) any login-specific initializations.
>
> Hope this helps.

Yes, thanks.

I cp'd my edited version of /etc/.bash_profile to ~/.bash_profile and all is
well.

Bill

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003


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