delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
From: | "Dennis Cook" <cook AT sandgate DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | bash-2.05b6 shell script fails |
Date: | Wed, 6 Nov 2002 16:27:46 -0500 |
Message-ID: | <NCBBIALAFDALJEMIJFCOIEGIDKAA.cook@sandgate.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
Importance: | Normal |
The following bash script fails when run with bash-2.05b6. bash-2.05b5 is OK. #!/bin/bash # Make the DOS current directory string for "runbuild.bat" to use. export SRC_DIR=`cygpath -a -w .` # Decide which platforms to build based on what kind of system we're # running on. case "`uname`" in CYGWIN_NT-4.0) PLATFORMS=WinNT ;; CYGWIN_NT-5.0 | CYGWIN_NT-5.1) PLATFORMS="Win2K WinXP" ;; *) echo "Unknown OS type `uname`" exit ;; esac --------------- end of bash script ---------- Errors are: ./run2.sh: line 5: unexpected EOF while looking for matching `'' ./run2.sh: line 19: syntax error: unexpected end of file -------------- end of errors ---------------------- The following variation also doesn't work: #!/bin/bash # Make the DOS current directory string for "runbuild.bat" to use. export SRC_DIR=`cygpath -a -w .` # Decide which platforms to build based on what kind of system we are # running on. case "`uname`" in CYGWIN_NT-4.0) PLATFORMS=WinNT ;; CYGWIN_NT-5.0 | CYGWIN_NT-5.1) PLATFORMS="Win2K WinXP" ;; *) echo "Unknown OS type `uname`" exit ;; esac ----------------- end of bash script ----------------- Errors are: ./run3.sh: line 5: platforms: command not found Dennis T. Cook Member Technical Staff Sandgate Technologies, Inc. mailto:cook AT sandgate DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |