Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!snorkelwacker!apple!mips!sony.com!dce From: dce@sony.com (David Elliott) Newsgroups: gnu.bash.bug Subject: "for i" broken? Message-ID: <1989Nov14.160253.15975@sony.com> Date: 14 Nov 89 16:02:53 GMT Reply-To: dce@icky.sony.com (David Elliott) Distribution: gnu Organization: Sony Microsystems Corp. Lines: 31 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}".) Script started on Tue Nov 14 07:58:30 1989 icky 1>cat ft #!/mnt/dce/Src/bash-1.04/bash PATH=/bin:/usr/bin for i { echo "$i" } icky 2>./ft syntax error near `{' ./ft:6: `{' syntax error near `}' ./ft:8: `}' icky 3> script done on Tue Nov 14 07:58:41 1989 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? -- David Elliott dce@sony.com | ...!{uunet,mips}!sonyusa!dce (408)944-4073 "You can lead a robot to water, but you can not make him compute."