Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <008f01c00633$f7c73420$0300a8c0@arnd.bru>
From: "Arnd Brusdeilins" <arnd@brusdeilins.de>
To: "andy.philpotts" <andy.philpotts@calendarcentral.com>,
        <cygwin@sourceware.cygnus.com>
Subject: Re: Simple bash startup question...
Date: Mon, 14 Aug 2000 23:09:28 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3


-----Ursprüngliche Nachricht-----
Von: Andy Philpotts <andy.philpotts@calendarcentral.com>
An: cygwin@sourceware.cygnus.com <cygwin@sourceware.cygnus.com>
Datum: Montag, 14. August 2000 21:10
Betreff: Simple bash startup question...


>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


Uncomment the following line:

>   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.philpotts@calendarcentral.com
>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>

Don't really know why it happens, but you can get around this by
uncommenting
the "source .bashrc" line in your .profile-file.
I guess you have a file called profile in your /etc directory , that is
calling the .profile-script
in your HOME-Directory too.
Uncomment the "test -f ./.profile && . ./.profile" line and you will have
only one "Welcome "
for each file. Hope this helps...



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

