delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/30/21:15:40

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
Message-ID: <42C4997F.90D12F43@dessent.net>
Date: Thu, 30 Jun 2005 18:16:47 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem with "set," "if," "foreach" commands
References: <20050701004741 DOT 63990 DOT qmail AT web52015 DOT mail DOT yahoo DOT com>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Han Nguyen wrote:
> 
> New to Unix, so please have patience.
> [...]
> Anything I can do to resolve this?  I appreciate the help.  Thanks.

You seem to be entering "c shell"-type syntax at a bash shell, and it
has no idea what you're talking about.  There are many shells out there
and they all have different ideas of what valid syntax looks like.  The
default shell for Cygwin is bash.

If you want to use that form of scripting you will have to either change
your shell to csh or tcsh, or put the commands in a script and call for
the desired interpreter (i.e. make the first line #!/bin/tcsh).  To
change your shell you will want to edit cygwin.bat to call tcsh.exe (or
csh.exe or whatever) instead of bash.  If you intend to log in via rsh
or ssh you'll also want to edit your shell setting in /etc/passwd.

Brian

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