delorie.com/archives/browse.cgi | search |
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 |
Message-ID: | <00b801c00637$dac9cc80$0300a8c0@arnd.bru> |
From: | "Arnd Brusdeilins" <arnd AT brusdeilins DOT de> |
To: | "andy.philpotts" <andy DOT philpotts AT calendarcentral DOT com>, |
<cygwin AT sourceware DOT cygnus DOT com> | |
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 <arnd AT brusdeilins DOT de> An: andy.philpotts <andy DOT philpotts AT calendarcentral DOT com>; cygwin AT sourceware DOT cygnus DOT com <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 <andy DOT philpotts AT calendarcentral DOT com> >An: cygwin AT sourceware DOT cygnus DOT com <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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |