From: Tom Kaczmarski <tkaczma@math.luc.edu>
To: dpd@asan.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: Unable to process a for loop as expected??
Date: Sun, 18 Aug 1996 13:06:07 -0500 (CDT) [thread overview]
Message-ID: <Pine.SUN.3.91.960818130349.27831C-100000@abel.math.luc.edu> (raw)
In-Reply-To: <17552567901167@asan.com>
On Sun, 18 Aug 1996 dpd@asan.com wrote:
> -------------------------------------------------------------
> #!/bin/zsh
>
> list="a b c d"
>
> for character in $list
> do
> echo "Character is $character"
> done
> --------------------------------------------------------------
2 quick solutions
1) use "for character in a b c d e f g"
2) use "for character in `echo $list`
For some reason zsh seems to think that you're passing it only one
argument to the for statement.
Tom
?
''~``
( o o )
+----------------------------------.oooO--(_)--Oooo.------------------------+
mailto:tkaczma@luc.edu
http://orion.it.luc.edu/~tkaczma
.oooO (312) 512-7302
( ) Oooo.
+-------------------------------------\ (----( )--------------------------+
\_) ) /
(_/
next prev parent reply other threads:[~1996-08-18 18:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-18 18:55 dpd
1996-08-18 18:06 ` Tom Kaczmarski [this message]
1996-08-18 18:45 ` Zefram
1996-08-18 19:19 ` Richard Coleman
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=Pine.SUN.3.91.960818130349.27831C-100000@abel.math.luc.edu \
--to=tkaczma@math.luc.edu \
--cc=dpd@asan.com \
--cc=zsh-workers@math.gatech.edu \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).