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 |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.4417.0 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: bash-2.05b6 shell script fails |
Date: | Wed, 6 Nov 2002 17:02:12 -0500 |
Message-ID: | <BADF3C947A1BD54FBA75C70C241B0B9E90B9C7@ex02.idirect.net> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Harig, Mark A." <maharig AT idirect DOT net> |
To: | "Dennis Cook" <cook AT sandgate DOT com>, <cygwin AT cygwin DOT com> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id gA6M2Sg22851 |
It appears to be a problem with command substitution. The following script fails also: #!/bin/bash foo=foo1 # simple assignment worked? bar=`echo` # command-substitution worked? When run in bash-2.05b6, the following results: $ uname -r 1.3.14(0.62/3/2) $ ./bug.sh ./bug.sh: line 5: command-substitution: command not found > -----Original Message----- > From: Dennis Cook [mailto:cook AT sandgate DOT com] > Sent: Wednesday, November 06, 2002 4:28 PM > To: cygwin AT cygwin DOT com > Subject: bash-2.05b6 shell script fails > > > 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/ > > -- 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 |