1.7.7: PATH in Bash shells
marco atzeri
marco.atzeri@gmail.com
Mon Feb 7 17:19:00 GMT 2011
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:
>>>
>>>> bash-4.1$ cat /Cygwin.bat
>>>> @echo off
>>>>
>>>> C:
>>>> chdir C:\cygwin\bin
>>>>
>>>> REM bash --verbose --login -i
>>>> 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:
>
> bash: /etc/profile.d/lang.sh: Bad address
> bash: /etc/profile.d/lapack0.sh: Bad address
>
>
> Which doesn't make a lot of sense:
>
> bash-4.1$ ls -l /etc/profile.d/
> total 8
> -rw-r--r-- 1 Administrator None 143 Jun 25 2010 lang.csh
> -rw-r--r-- 1 Administrator None 130 Jun 25 2010 lang.sh
> -rw-r--r-- 1 Administrator root 258 Aug 24 11:44 lapack0.csh
> -rw-r--r-- 1 Administrator root 470 Aug 24 11:44 lapack0.sh
> -rw-r--r-- 1 Administrator root 109 Dec 3 05:17 openssl.csh
> -rw-r--r-- 1 Administrator root 41 Dec 3 05:17 openssl.sh
> -rwxr-xr-x 1 Administrator root 74 Mar 16 2010 xinit.csh
> -rwxr-xr-x 1 Administrator root 44 Mar 16 2010 xinit.sh
>
> Except maybe that execute permissions at not on those scripts. But are
> they supposed to have execute permissions? Could someone check their
> 1.7.7 installation and let me know what 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=C 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
More information about the Cygwin
mailing list