delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/14/15:10:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 14 Aug 2000 15:09:31 -0400
From: Andy Philpotts <andy DOT philpotts AT calendarcentral DOT com>
X-Mailer: The Bat! (v1.45)
Reply-To: "andy.philpotts" <andy DOT philpotts AT calendarcentral DOT com>
Organization: Product Development
X-Priority: 3 (Normal)
Message-ID: <32365583791.20000814150931@calendarcentral.com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Simple bash startup question...
Mime-Version: 1.0

This may not be specific to cywin, but can anyone explain why, if I
have an echo in my .bashrc and my .profile files, when I start a bash
shell I get:

Welcome to .profile(1)
Welcome to .bashrc(1)
Welcome to .bashrc(1)
Welcome to .profile(1)
Welcome to .bashrc(1)

I would have expected to only see one invocation of each.

For reference my .profile looks like:

   echo Welcome to .profile\($SHLVL\)
   unset MAILCHECK
   source .bashrc

My .bashrc looks like:

   echo Welcome to .bashrc\($SHLVL\)
   shopt -s nocaseglob

and I launch bash through a batch file:

   @echo off
   d:
   chdir \cygwin\bin
   bash --login -i

-- 
Best regards,
 Andy              mailto:andy DOT philpotts AT calendarcentral DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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