bug-bash
[Top][All Lists]
Advanced

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

Re: for VAR; do does not work any more on some platforms


From: Chet Ramey
Subject: Re: for VAR; do does not work any more on some platforms
Date: Sat, 04 Mar 2006 17:24:03 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

bashbugreport-ta@durchnull.de wrote:

> Bash Version: 3.1
> Patch Level: 11
> Release Status: release
> 
> Description:
> 
> In other shells (like bash 3.0, bash 2.x, zsh, dash),
> 
>     for VARIABLE; do ...; done
> 
> is equivalent to
> 
>     for VARIABLE in "$@"; do ...; done

And it is in bash, too.  When this has been reported in the past, it
has been due to a bug in the version of bison used to generate the
parser from parse.y.  I cannot remember the exact version of bison
that's at fault, and can't easily find it right now, but that is the
culprit.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                           Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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