bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

for loops without in do not work


From: bashbug
Subject: for loops without in do not work
Date: Fri, 3 Mar 2006 18:49:34 +0100 (CET)

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     
address@hidden:/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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]