Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!snorkelwacker!tut.cis.ohio-state.edu!AUREL.CNS.CALTECH.EDU!bfox From: bfox@AUREL.CNS.CALTECH.EDU (Brian Fox) Newsgroups: gnu.bash.bug Subject: "for i" broken? Message-ID: <8911142305.AA00986@aurel.cns.caltech.edu.> Date: 14 Nov 89 23:05:52 GMT References: <1989Nov14.160253.15975@sony.com> Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox@aurel.cns.caltech.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 35 Date: 14 Nov 89 16:02:53 GMT From: dce@sony.com (David Elliott) Organization: Sony Microsystems Corp. Sender: bug-bash-request@prep.ai.mit.edu It appears that the "for" construct in which no "in {list}" is given does not appear to work. (For those of you unfamiliar with this construct, it imples "in {list of arguments}".) Well, this is not exactly true. for i; do echo $i; done works correctly. Only in the "{}" style of the command does this not work. for i { echo "$i" } syntax error near `}' As a side question, Brian, are you collecting shell scripts to be used as a regression/porting test suite with bash, like those which come with gawk and perl? Oh yes! Good idea. Go ahead and submit such scripts to: bash-scripts@aurel.cns.caltech.edu If you mail them directly to me, I may accidentally delete them, which would be a shame. Brian Fox