delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Doug <dmly DOT usa AT gmail DOT com> |
Subject: | CASE error in script file |
Date: | Wed, 8 Nov 2006 21:57:40 +0000 (UTC) |
Lines: | 25 |
Message-ID: | <loom.20061108T225533-24@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Hello, I am using Cygwin 1.5.21(0.156/4/2).I try to run the shell script called test.sh case $1 in 1) echo '1' ;; 2) echo '2' ;; *) echo 'Dunno' exit 1 esac but i always get the following error '/test.sh: line 1: syntax error near unexpected token `in '/test.sh: line 1: `case $1 in I can run the script successfully in a linux box. Please help Doug -- 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 |