bug-bash
[Top][All Lists]
Advanced

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

Re: 'for name' does not work correctly


From: Chet Ramey
Subject: Re: 'for name' does not work correctly
Date: Sat, 11 Sep 2004 17:56:30 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.2) Gecko/20040803

Dave Bodenstab wrote:

Machine Type: i386-unknown-freebsd4.8

Bash Version: 3.0
Patch Level: 13
Release Status: release

Description:
        'for name' does not assign positional arguments to 'name'

This has been reported before.  It's the result of a bug in bison-1.75,
which translates "\"address@hidden"" in parse.y to "\"\"" in y.tab.c.  Newer
versions of bison fix the problem.

Chet


Repeat-By:
        Create test script:

        #!/usr/local/bin/bash
        echo \> \$#=$#, $*
        for arg
        do
         echo \> arg=$arg
        done
        set -- one two three
        echo \> \$#=$#, $*
        for arg
        do
         echo \> arg=$arg
        done

        Run:

        $ bug a
        > $#=1, a
        > arg=
        > $#=3, one two three
        > arg=


_______________________________________________
Bug-bash mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-bash





reply via email to

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