Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <42C4997F.90D12F43@dessent.net> Date: Thu, 30 Jun 2005 18:16:47 -0700 From: Brian Dessent MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Problem with "set," "if," "foreach" commands References: <20050701004741.63990.qmail@web52015.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@cygwin.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/