ports/139256: [shells/bash] faulty parser code generated by bison
Pavel Gorshkov
gorshkov.pavel at gmail.com
Wed Sep 30 16:40:02 UTC 2009
>Number: 139256
>Category: ports
>Synopsis: [shells/bash] faulty parser code generated by bison
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 30 16:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Pavel Gorshkov
>Release: 7.2-STABLE-amd64
>Organization:
>Environment:
FreeBSD lifebook 7.2-STABLE FreeBSD 7.2-STABLE #2: Tue May 5 20:20:45 MSD 2009 root at lifebook:/usr/obj/usr/src/sys/LIFEBOOK amd64
>Description:
See below for what I believe to be 100% reproducible on amd64 (bash-4.0.33, bison-2.4.1). Note the same command being run over and over again.
>How-To-Repeat:
$ time for i in 1; do echo $(echo 1); done
1
real 0m0.001s
user 0m0.000s
sys 0m0.001s
$ time for i in 1; do echo $(echo 1); done
bash: syntax error near unexpected token `do'
$ time for i in 1; do echo $(echo 1); done
1
real 0m0.001s
user 0m0.000s
sys 0m0.001s
$ time for i in 1; do echo $(echo 1); done
bash: syntax error near unexpected token `do'
$ time for i in 1; do echo $(echo 1); done
1
real 0m0.001s
user 0m0.000s
sys 0m0.001s
$ time for i in 1; do echo $(echo 1); done
bash: syntax error near unexpected token `do'
>Fix:
When building bash, use the default setting for $YACC (YACC='bison -y')
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list