delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/09/07:19:19

X-Spam-Check-By: sourceware.org
Date: Thu, 09 Nov 2006 12:18:42 +0000
From: Owen Rees <owen DOT rees AT hp DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: String concatenation and if-fi constructs in bash fail
Message-ID: <1CE4D6CFC4D1E78F96CD7419@orees.hpl.hp.com>
In-Reply-To: <455311BF.1020606@oersted.dtu.dk>
References: <455311BF DOT 1020606 AT oersted DOT dtu DOT dk>
X-Mailer: Mulberry/4.0.0b4 (Linux/x86)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Thursday, November 09, 2006 12:32:15 +0100 Borislav Tomov wrote:

> Example results:
>
> one
> +ne
> +two
> The number 2: two
>  + twos one

> Example result:
>                for line XX which is the last +1 line of the script, the
> following message is displayed
>
> script_path: line XX: syntax error: unexpected end of file

This is not Cygwin specific. You get the same results on Linux provided 
that you copy the scripts across in binary mode preserving the \r 
characters at the ends of the lines.

See the archives for much discussion of bash and \r.

-- 
Owen Rees
Hewlett Packard Laboratories, Bristol, UK


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