[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use "< file" and it complains about "do"
From: |
Dan Jacobson |
Subject: |
use "< file" and it complains about "do" |
Date: |
Mon, 11 Nov 2002 06:06:00 +0800 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I.
-I/home/doko/packages/bash/bash-2.05a
-I/home/doko/packages/bash/bash-2.05a/include
-I/home/doko/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux debian 2.4.18-k7 #1 Sun Apr 14 13:19:11 EST 2002 i686
unknown
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
if bash is unhappy about "< file" before complex commands, then it
should give clearer error messages. E.g. detect it and tell the user
to move it to the end or something.
Repeat-By:
$ < /tmp/aaa while read x;do if zfgrep -q $x bbb;then :;else echo $x;fi;done
bash: syntax error near unexpected token `;do'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- use "< file" and it complains about "do",
Dan Jacobson <=