[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
input redirection fails on loop commands when positioned before command
From: |
Morche Matthias |
Subject: |
input redirection fails on loop commands when positioned before command invocation |
Date: |
Mon, 19 Jul 2004 12:03:23 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: i686-pc-cygwin-gcc
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc'
-DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS -I.
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b/include
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b/lib -O2
uname output: CYGWIN_NT-5.1 cb2284 1.5.10(0.116/4/2) 2004-05-25 22:07 i686
unknown unknown Cygwin
Machine Type: i686-pc-cygwin
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
[Detailed description of the problem, suggestion, or complaint.]
An input redirection placed before the loop construct fails, while the same
redirection placed behind succeeds. Same happens on Sun Solaris 8 (sun4u) with
bash 2.03.0(1)-release (sparc-sun-solaris) and even with the original bourne
shell.
Repeat-By:
[Describe the sequence of events that causes the problem to occur.]
< /etc/motd while read a b;do echo $a $b;done
bash: syntax error near unexpected token `do'
- input redirection fails on loop commands when positioned before command invocation,
Morche Matthias <=