[Top][All Lists]

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

"for i do ..." broken with --enable-minimal-config

From: chong . phil
Subject: "for i do ..." broken with --enable-minimal-config
Date: Thu, 7 Dec 2006 23:12:12 -0800

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux boopsie.dyndns.org #6 Thu Nov 30 01:23:17 PST 2006 
i686 unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.2
Patch Level: 5
Release Status: release

The "for i do ..." construct (to loop over $@ by default) does not
work when bash is compiled with --enable-minimal-config .  I understand
many things aren't supposed to work with --enable-minimal-config ,
but:  1) http://www.in-ulm.de/~mascheck/bourne/common.html suggests
that should work portably on all Bourne shells, and 2) the construct
is used in the bash configure script itself (version 3.2p005, line 1119).

The following script shows the bug:

mysub () {
    for i
        echo "here $i"

mysub foo bar baz

reply via email to

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