This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: bash init failing on cygwin terminal launch

On 13 February 2008 20:35, Rowe, Thomas wrote:

> The tail of `bash --login -i -x` is:
> 	+ cd '/cygdrive/c/Documents and Settings/rowet'
> 	+ case `id -ng` in
> 	++ id -ng
> 	' . '/cygdrive/c/Documents and Settings/rowet/.bashrc
> 	: No such file or directory and Settings/rowet/.bashrc
> I cannot figure out the failing script from this.  The `id -ng` stuff is
> from the end of /etc/profile, so I guess /etc/profile gets through OK.
> I ran dos2unix against /etc/profile and .bashrc to no effect.

  I reckon that /etc/profile ends just after "++ id -ng" (fell through the
switch without hitting any of the cases) and you're now in ~/.bash_profile,
which includes these lines right at the start ...

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

  Hopefully the quotes there will protect the space in $HOME, and it just
means that you need to d2u ~/.bash_profile.

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

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