www.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://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: | <20050701004741.63990.qmail@web52015.mail.yahoo.com> |
Date: | Thu, 30 Jun 2005 17:47:41 -0700 (PDT) |
From: | Han Nguyen <nxnw98 AT yahoo DOT com> |
Subject: | Problem with "set," "if," "foreach" commands |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
New to Unix, so please have patience. I understand that I should be able to type set food = pickle echo $food But nothing echoes. It just leaves a blank line, then gives another command prompt. Am I doing anything wrong? "If" also doesn't work. This is what happens: $ if (5 > 0) > echo "Hello" > endif > > > And it merely continues that way until I exit the shell. Also a problem with "foreach." Output: $ foreach run (1 2 3) bash: syntax error near unexpected token `(' Typing "help set" and "help foreach" gives me: $ help foreach bash: help: no help topics match `foreach'. Try `help help' or `man -k foreach' or `info foreach'. Anything I can do to resolve this? I appreciate the help. Thanks. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com -- 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 |