Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2009 03:25:05 -0700 (PDT)
From:      GESBBB <gesbbb@yahoo.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Problem with Bash-4 and $(command) syntax
Message-ID:  <277910.98378.qm@web32103.mail.mud.yahoo.com>
In-Reply-To: <721111.30542.qm@web39104.mail.mud.yahoo.com>
References:  <721111.30542.qm@web39104.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> From: bf bf2006a@yahoo.com=0A=0A[snip]=0A=0A> The problem is that the por=
t's parser is =0A> broken, owing in part to incompatibilities between the =
=0A> system yacc currently used to build the parser and GNU=0A> bison, whic=
h is used by the people who write bash.=A0 This=0A> is true of both shells/=
bash and shells/bash3, but is more=0A> noticeable in shells/bash.=A0 A fix =
has been proposed, and patches=0A> are available, in the follow-up to:=0A> =
=0A> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=3Dports/101230=0A>; =0A> The=
 port's maintainer has been reluctant to switch to bison,=0A> so this may n=
ot be the solution that is ultimately used to=0A> fix the port, but you can=
 use these in the meantime.=0A=0AI just received a reply back from the 'bas=
h-bugs' forum.=0A=0A<quote>=0A=0AChet Ramey <chet.ramey@case.edu>=0A=0ABash=
-4.0 parses the contents of command substitutions before=0Aexecuting them.=
=A0 This is what Posix requires.=A0 Previous versions=0Adeferred parsing to=
 the subshell spawned to execute the command.=0A=0A(This part works best if=
 you're looking at the yacc grammar.)=0A=0ABSD yacc will not reduce a simpl=
e_list1 to a simple_list when the=0Alookahead token is `)'.=A0 Bison will.=
=A0 It's that simple.=0A=0A</quote>=0A=0A-- =0AJerry=0A



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?277910.98378.qm>