bug-bash
[Top][All Lists]
Advanced

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

Re: $() parsing still broken


From: Christian Weisgerber
Subject: Re: $() parsing still broken
Date: Mon, 21 Sep 2009 02:25:48 +0200
User-agent: Mutt/1.4.2.3i

Chet Ramey:

> >> I suppose the only real variable is the revision of bison:
> > 
> > 2.4.1 and 2.3 on my FreeBSD and OpenBSD box, respectively.
> 
> Try 1.875 and see if the problems go away.

Red herring.  I found the problem, it is embarrassingly stupid, and
Andreas was right.  The fault lies with the official FreeBSD and
OpenBSD ports.

Since bash 4's $() parsing is broken if you build the parser with
BSD yacc, the ports now specify the use of bison by passing YACC=bison
to the configure script.  Running "bison -d parse.y" creates
parse.tab.c rather than y.tab.c, so y.tab.c is never regenerated,
and the parser fix from patch 001 is effectively not applied.

We just need to use YACC="bison -y".

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de




reply via email to

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