From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48423 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuqpJ-0007yS-3a for qemu-devel@nongnu.org; Sun, 12 Sep 2010 13:58:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuqpH-0001Wq-Pn for qemu-devel@nongnu.org; Sun, 12 Sep 2010 13:58:52 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:54870) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuqpH-0001Wl-JF for qemu-devel@nongnu.org; Sun, 12 Sep 2010 13:58:51 -0400 Message-Id: <577C53A8-9AA7-4D71-98EF-A75F93A4F74B@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage Date: Sun, 12 Sep 2010 19:58:27 +0200 References: <20100912112636.2648.27149.malonedeb@potassium.ubuntu.com> <1C12421B-DC91-471B-A285-7501CA61CE3E@web.de> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Bug 636315 <636315@bugs.launchpad.net>, qemu-devel@nongnu.org Am 12.09.2010 um 19:47 schrieb Blue Swirl: > On Sun, Sep 12, 2010 at 5:35 PM, Andreas F=E4rber = > wrote: >> Am 12.09.2010 um 19:22 schrieb Blue Swirl: >> >>> What is the output of "sh ./tracetool --nop --check-backend"? >> >> ./tracetool: syntax error at line 51: `$' unexpected > > Does this patch fix the problem? > > diff --git a/tracetool b/tracetool > index 534cc70..c7582bf 100755 > --- a/tracetool > +++ b/tracetool > @@ -48,7 +48,8 @@ get_argnames() > { > local nfields field name > nfields=3D0 > - for field in $(get_args "$1"); do > + args=3Dget_args "$1" > + for field in "$args"; do This part yes. (I took the liberty of adding args to the local line =20 above) > nfields=3D$((nfields + 1)) Next error is here: ./tracetool: syntax error at line 53: `nfields=3D$' unexpected=