X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: Bash problem - v3.1.17(8) - syntax error
Date:  Tue, 26 Sep 2006 15:50:36 -0500
Lines: 37
Message-ID: <efc3qs$iij$2@sea.gmane.org>
References:  <45197B3B.2070205@unix.telasic.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
In-Reply-To: <45197B3B.2070205@unix.telasic.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Arun Biyani wrote:
> I just upgraded to the current bash. Now I am getting an error. I 
> reinstalled, rebooted
> the machine. Still get the same error. The variable $HOME is set correctly.
> 
>  > bash: /c/home/abiyani/.bash_login: line 7: syntax error: unexpected 
> end of file
>  >
>  > abiyani@IT90-1070 ~
>  > $ bash --version
>  > GNU bash, version 3.1.17(8)-release (i686-pc-cygwin)
>  > Copyright (C) 2005 Free Software Foundation, Inc.
>  >
>  > abiyani@IT90-1070 ~
>  > $ cat ~/.bashrc
>  > #
>  > if [ -f $HOME/wrk/sys/com/bash_more ]
>  > then
>  >     . $HOME/wrk/sys/com/bash_more
>  > fi
>  > #
>  >
>  >
>  > abiyani@IT90-1070 ~

Just for the record, the release announcement did mention:
"A script on a binary mount that uses \r\n line endings will probably 
encounter syntax errors or odd variable assignments, because the \r is 
treated literally.  If this happens to you, use d2u to fix the line 
endings, or change your script to live in a text mount point.  A script 
that resides on a text mount can have either line ending (even 
inconsistently mixed), but be aware that text mount points are slower, 
due to \r\n filtering."

-- 
Matthew
Download. Untar. Configure. Make. Install. Lather. Rinse. Repeat.


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

