Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

for loops without in do not work

0 views
Skip to first unread message

bas...@cl.turing-complete.org

unread,
Mar 3, 2006, 12:49:34 PM3/3/06
to bug-...@gnu.org, obr...@freebsd.org
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.11
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd4.11' -DCONF_MACHTYPE='i386-portbld-freebsd4.11' -DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -D_THREAD_SAFE -I/usr/local/include -O -pipe
uname output: FreeBSD pc5.i.0x5.de 4.11-RELEASE-p14 FreeBSD 4.11-RELEASE-p14 #0: Fri Jan 13 12:29:14 CET 2006 n...@pc5.i.0x5.de:/scratch/obj/usr/exported/src/sys/PC5 i386
Machine Type: i386-portbld-freebsd4.11

Bash Version: 3.1
Patch Level: 10
Release Status: release

Description:
for loops where no in is specified do not work

at least in the FreeBSD port of if (bash-3.1.10)

Repeat-By:

cat t.sh
#!/usr/local/bin/bash

echo X "$@"

for i
do
echo A $i
done
EOF

> ./t.sh a b c
X a b c
A
>


bash 2.05b.0(1)-release gives the correct output
X a b c
A a
A b
A c

0 new messages