From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id DAA02430 for ; Mon, 19 Aug 1996 03:58:30 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA09187; Sun, 18 Aug 1996 13:57:32 -0400 (EDT) Resent-Date: Sun, 18 Aug 1996 13:57:32 -0400 (EDT) From: dpd@asan.com Comments: Authenticated sender is To: zsh-workers@math.gatech.edu Date: Sun, 18 Aug 1996 13:55:20 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Unable to process a for loop as expected?? Priority: normal X-mailer: Pegasus Mail for Win32 (v2.31) Message-Id: <17552567901167@asan.com> Resent-Message-ID: <"Ttm03.0.QF2.Bcr5o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2022 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hello there! I hope I am writing to the proper person(s). If not just let me know who to write to or better yet, forward this to the proper party(ies). My problem is trying to read in a string of values into a for loop. A trivial script example is provided: ------------------------------------------------------------- #!/bin/zsh list="a b c d" for character in $list do echo "Character is $character" done -------------------------------------------------------------- The expected output (Exactly what I wish to accomplish): Character is a Character is b Character is c Character is d Actual output (Not what I want to accomplish): Character is a b c d A similar script using the /bin/bash shell produces the "expected" output, however, using the /bin/zsh shell produces the "actual", i.e., unwanted, output Can some one help me resolve this issue. I am indeed looking for a resolution that will allow me to produce the "expected" ouput in such a for loop construct. BTW, according to the extracted sources, I am using zsh version zsh-2.6-beta19. However, according to the man pages, I am using zsh version 2.7. (Why the discrepancy?) I am running the LINUX operating system, version 1.3.91. If you need to know more info jusk ask :-). Thanks for your help! Dom.