| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| X-YMail-OSG: | 0EMwGhkVM1klfc0whL3v5HYvTMjmNeRPGPfi3sBmgX9oDvhvCuhTnqgXlvEj0iOGl019GuPX3DxeIaftUvWHbqeOuKTzPEPdApNWoQMNIwrpAgurDRqjSjxnYiWrMoBCGAuVwIGYQdvqt_fbxpbPRVHqxVbYLJnV37w- |
| Message-ID: | <45CC0D10.3040306@lbl.gov> |
| Date: | Thu, 08 Feb 2007 21:56:32 -0800 |
| From: | Jim Guojun <j_guojun AT lbl DOT gov> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | subroutine error for Cygwin bash 3.2.9(11)-release |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
Install the latest Cygwin to A number XP machines with the same
installation procedure, but
some machines work fine and some did not. The shell does not like the
subrutine in a script file (See below).
Even the error output is strange -- s is replaced by a <'>. There is no
' symbol in the script anywhere, so
I do not know what the bash complaint about.
Has anyone seen the same problem?
bash-3.2$ sh -x start.sh
+ $'\r'
: command not found
'tart.sh: line 6: syntax error near unexpected token `
'tart.sh: line 6: `func()
bash-3.2$ sh -version
GNU bash, version 3.2.9(11)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
bash-3.2$ less start.sh
#!/bin/sh
if [ x$1 = x2 ]; then
fi
func()
{
echo "cannot process subroutine"
}
if [ ...] # everything is ok as long as no subroutines
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |