delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/31/08:53:18

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <12391292 DOT post AT talk DOT nabble DOT com> <005801c7eabb$cd519bd0$0a00a8c0 AT a64x23800p> <46D6462D DOT 1020203 AT holdenweb DOT com> <003401c7eb12$1bb53e70$0a00a8c0 AT a64x23800p> <fb6uq2$fa9$1 AT sea DOT gmane DOT org> <001601c7eb2d$986d63f0$0a00a8c0 AT a64x23800p> <46D703CB DOT 7090605 AT holdenweb DOT com> <003501c7eb8b$8cb56c70$0a00a8c0 AT a64x23800p> <fb8am1$8ff$1 AT sea DOT gmane DOT org> <46D8050F DOT 4070808 AT byu DOT net>
Subject: RE: How do I make scripts my PC executable
Date: Fri, 31 Aug 2007 13:52:53 +0100
Message-ID: <013101c7ebcd$d8777940$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <46D8050F.4070808@byu.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 31 August 2007 13:10, Eric Blake wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Andrew DeFaria on 8/30/2007 11:58 PM:
>> I'm always amazed how little people know about their own startup
>> environments and the reluctance to learn more about them thus improving
>> their environment and productivity. The -l option to bash *should*
>> source /etc/profile and your ~/.bash_profile. Additionally it should
>> source your .bashrc - if any of these are present.
> 
> Actually, please reread 'man bash'.  In a login shell, bash only directly
> sources /etc/profile, then the first of ~/.bash_profile, ~/.bash_login, or
> ~/.profile that exists.  Therefore, if you want ~/.bashrc sourced in login
> shells, YOU must ensure that one of the other files sources it.

  Well yeh, but in cygwin....


/artimi/software/firmware $ cat /etc/skel/.bash_profile
# base-files version 3.7-1

# To pick up the latest recommended .bash_profile content,
# look in /etc/defaults/etc/skel/.bash_profile

# Modifying /etc/skel/.bash_profile directly will prevent
# setup from updating it.

# The copy in your home directory (~/.bash_profile) is yours, please
# feel free to customise it to create a shell
# environment to your liking.  If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.

# ~/.bash_profile: executed by bash for login shells.

# source the system wide bashrc if it exists
if [ -e /etc/bash.bashrc ] ; then
  source /etc/bash.bashrc
fi

# source the users bashrc if it exists
if [ -e "${HOME}/.bashrc" ] ; then
  source "${HOME}/.bashrc"
fi

... so it /should/ be the same thing anyway.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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