Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <00b801c00637$dac9cc80$0300a8c0@arnd.bru> From: "Arnd Brusdeilins" To: "andy.philpotts" , Subject: Re: Simple bash startup question... Date: Mon, 14 Aug 2000 23:36:41 +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: Arnd Brusdeilins An: andy.philpotts ; cygwin AT sourceware DOT cygnus DOT com Datum: Montag, 14. August 2000 23:14 Betreff: Re: Simple bash startup question... > >-----Ursprüngliche Nachricht----- >Von: Andy Philpotts >An: cygwin AT sourceware DOT cygnus DOT 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: I wrote uncomment but meant DELETE (.bashrc is already called by /etc/profile) > >> 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 >> > >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 I wrote uncomment but meant DELETE (sorry) >only one "Welcome " >for each file. Hope this helps... > > > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com