From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms-smtp-03-lbl.southeast.rr.com ([24.25.9.102] helo=ms-smtp-03-eri0.southeast.rr.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DRHeZ-0006GP-00 for ; Thu, 28 Apr 2005 18:38:39 -0400 Received: from geekspeak (cpe-024-074-098-208.carolina.res.rr.com [24.74.98.208]) by ms-smtp-03-eri0.southeast.rr.com (8.12.10/8.12.7) with SMTP id j3SMcYY4005990 for ; Thu, 28 Apr 2005 18:38:36 -0400 (EDT) Message-ID: <008601c54c43$0b8bac70$6401a8c0@geekspeak> From: "Laura Eaves" To: "Speakup is a screen review system for Linux." References: <20050428140324.GA20658@rednote.net> Date: Thu, 28 Apr 2005 18:38:48 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: Bash Problem X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 22:38:39 -0000 Did you mean "for i in..." rather than "for in..."? don't know why that would cause that particular error, but it looks wrong to leave out the i. --le ----- Original Message ----- From: "Janina Sajka" To: ; ; Sent: Thursday, April 28, 2005 10:03 AM Subject: Bash Problem I'm confused over some simple bash syntax. If I write the following at the bash (ver 3.0) prompt, all works as expected--no errors. But, if I execute from a script file (which begins with a #!/bin/bash of course), I get: line 4: syntax error near unexpected token `then' What am I missing? All help much appreciated. for in $( ls); do if [ "$i" != "incoming/" ]; then echo $i fi done -- Janina Sajka Phone: +1.202.494.7040 Partner, Capital Accessibility LLC http://www.CapitalAccessibility.Com Chair, Accessibility Workgroup Free Standards Group (FSG) janina@freestandards.org http://a11y.org If Linux can't solve your computing problem, you need a different problem. _______________________________________________ Speakup mailing list Speakup@braille.uwo.ca http://speech.braille.uwo.ca/mailman/listinfo/speakup