X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_RW,TW_WX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4D5015F6.6030808@verizon.net> References: <4D4EE981 DOT 4060309 AT verizon DOT net> <20110206191619 DOT GA6839 AT jethro DOT local DOT lan> <4D4F07FE DOT 4040902 AT verizon DOT net> <4D4F9389 DOT 4050800 AT dyximaq DOT de> <4D500DC0 DOT 2020809 AT verizon DOT net> <4D5015F6 DOT 6030808 AT verizon DOT net> Date: Mon, 7 Feb 2011 18:19:09 +0100 Message-ID: Subject: Re: 1.7.7: PATH in Bash shells From: marco atzeri To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Mon, Feb 7, 2011 at 4:55 PM, Gerry Reno wrote: > On 02/07/2011 10:20 AM, Gerry Reno wrote: >> On 02/07/2011 01:39 AM, Dirk Sondermann wrote: >>> On 02/06/11 21:43, Gerry Reno wrote: >>> >>>> =A0 =A0 bash-4.1$ cat /Cygwin.bat >>>> =A0 =A0 @echo off >>>> >>>> =A0 =A0 C: >>>> =A0 =A0 chdir C:\cygwin\bin >>>> >>>> =A0 =A0 REM bash --verbose --login -i >>>> =A0 =A0 bash -i >>>> >>> Your Cygwin.bat doesn't start bash as a login shell. >>> >>> -Dirk >>> >>> >> >> Ok, I tried uncommenting the REM'd line and now I cannot start a shell >> at all. >> >> When I click the Cygwin icon a window pops up and in it a whole bunch of >> lines go scrolling by and at the end it says "Press any key to >> continue..." and when I press a key the window closes. >> >> >> Regards, >> Gerry >> >> > > When I let it run as a login shell it appears to first be running > /etc/profile and then dies at around line 153 or so and exits the shell > which is why I get the 'pause' prompt to press any key. > > The only error I noticed so far is this: > > =A0 =A0bash: /etc/profile.d/lang.sh: Bad address > =A0 =A0bash: /etc/profile.d/lapack0.sh: Bad address > > > Which doesn't make a lot of sense: > > =A0 =A0bash-4.1$ ls -l /etc/profile.d/ > =A0 =A0total 8 > =A0 =A0-rw-r--r-- 1 Administrator None 143 Jun 25 =A02010 lang.csh > =A0 =A0-rw-r--r-- 1 Administrator None 130 Jun 25 =A02010 lang.sh > =A0 =A0-rw-r--r-- 1 Administrator root 258 Aug 24 11:44 lapack0.csh > =A0 =A0-rw-r--r-- 1 Administrator root 470 Aug 24 11:44 lapack0.sh > =A0 =A0-rw-r--r-- 1 Administrator root 109 Dec =A03 05:17 openssl.csh > =A0 =A0-rw-r--r-- 1 Administrator root =A041 Dec =A03 05:17 openssl.sh > =A0 =A0-rwxr-xr-x 1 Administrator root =A074 Mar 16 =A02010 xinit.csh > =A0 =A0-rwxr-xr-x 1 Administrator root =A044 Mar 16 =A02010 xinit.sh > > Except maybe that execute permissions at not on those scripts. =A0But are > they supposed to have execute permissions? =A0Could someone check their > 1.7.7 installation and let me know =A0what permissions are on the files in > /etc/profile.d/? > > > > Regards, > Gerry > those scripts are called inside /etc/profile and the execute permission is not needed --------------------------------------------------------------------------- # Run all of the profile.d scripts # Note that these are supplied by separate packages # Ascending alphanumerical order enforced if [ -d "/etc/profile.d" ]; then while read f; do if [ -f "${f}" ]; then . "${f}" fi done <<- EOF `/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=3DC sort` EOF fi --------------------------------------------------------------------------- . FILENAME [ARGUMENTS] Read and execute commands from the FILENAME argument in the current shell context. Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple