[MPlayer-dev-eng] [PATCH] configure: prevent some shells from crashing

Diego Biurrun diego at biurrun.de
Thu Apr 16 12:05:06 CEST 2009


On Wed, Apr 15, 2009 at 09:23:09PM -0400, compn wrote:
> passed to me on irc:
> 
> <Compn> you just added a space ?
> <dmg> Compn: Well, two spaces actually.
> <dmg> Compn: The problem is that $(( is shell arithmetic expansion
> <dmg> and dash searches the rest of the file looking for the closing ))
> <Compn> which shell ?
> <dmg> http://en.wikipedia.org/wiki/Debian_Almquist_shell
> <Compn> it causes a segfault ?
> <dmg> Compn: yes, because dash builds assembles its strings on the
> stack using alloca() and evenetually it runs out of space.

Thanks for the notification.  I threw away the hacks to work around
non-POSIX head and tail instead.

Diego



More information about the MPlayer-dev-eng mailing list