This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]