From: "Laura Eaves" <leaves1@carolina.rr.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: Bash Problem
Date: Thu, 28 Apr 2005 18:38:48 -0400 [thread overview]
Message-ID: <008601c54c43$0b8bac70$6401a8c0@geekspeak> (raw)
In-Reply-To: <20050428140324.GA20658@rednote.net>
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" <janina@rednote.net>
To: <ma-linux@tux.org>; <speakup@braille.uwo.ca>;
<blinux-list-bounces@redhat.com>
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
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
Janina Sajka
` David Bruzos
` Janina Sajka
` Sean McMahon
` Kirk Reiser
` Lorenzo Taylor
` Laura Eaves [this message]
Dawes, Stephen
` Janina Sajka
Dawes, Stephen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='008601c54c43$0b8bac70$6401a8c0@geekspeak' \
--to=leaves1@carolina.rr.com \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).