bug-bash
[Top][All Lists]
Advanced

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

Re: 'for' builtin without 'in' doesn't use the positional parameter


From: Chet Ramey
Subject: Re: 'for' builtin without 'in' doesn't use the positional parameter
Date: Mon, 4 Nov 2002 15:36:36 -0500

> Machine Type: i386-pc-linux-gnu
> 
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description
> 
> The 'for' builtin used without 'in' seems not to use the parameters
> "$*".
> 
> I found this bug trying to install a new software. 
> The 'configure --help' script ignore my arguments.
> 
> 
> Repeat-By:
> 
> $ cat > foo.sh <<EOF
> > for i
> > do
> > echo ">>>$i<<<"
> > done
> > EOF
> $ bash --norc foo.sh bar or not
> >>><<<
> $ bashbug 

I can't reproduce it:

jenna.ins.cwru.edu(1)$ ../bash-2.05b/bash --version
GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
jenna.ins.cwru.edu(1)$ ../bash-2.05b/bash --norc ./x4 bar or not
>>>bar<<<
>>>or<<<
>>>not<<<
jenna.ins.cwru.edu(1)$ cat ./x4
for i
do
echo ">>>$i<<<"
done

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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