From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8XD8-00079n-Uz for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:29:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8XD2-0006uR-JJ for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:28:50 -0400 Received: from mout.web.de ([212.227.15.3]:56668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8XD2-0006td-A1 for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:28:44 -0400 Message-ID: <4F634009.70608@web.de> Date: Fri, 16 Mar 2012 14:28:41 +0100 From: =?windows-1252?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <541C8B7E-1E25-479E-B69E-A4B58BFA45F3@nowonline.co.uk> <4F633595.5060608@web.de> <1EA6E838-00B8-45F3-A293-BF495BF07F7B@nowonline.co.uk> <4F633DF1.8010903@redhat.com> In-Reply-To: <4F633DF1.8010903@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Lee Essen , qemu-devel@nongnu.org, Stefan Hajnoczi Am 16.03.2012 14:19, schrieb Paolo Bonzini: > Il 16/03/2012 14:00, Lee Essen ha scritto: >> /tmp/patch/qemu/scripts/tracetool[520]: local: not found [No such file or directory] >> /tmp/patch/qemu/scripts/tracetool[66]: local: not found [No such file or directory] >> /tmp/patch/qemu/scripts/tracetool[136]: local: not found [No such file or directory] >> /tmp/patch/qemu/scripts/tracetool[55]: local: not found [No such file or directory] >> /tmp/patch/qemu/scripts/tracetool[80]: local: not found [No such file or directory] >> /tmp/patch/qemu/scripts/tracetool[55]: local: not found [No such file or directory] >> >> From what I can see "local" isn't supported in posix ... >> "The POSIX standard supports functions, as shown above, but the semantics are weaker: functions do not have local traps or options, it is not possible to define local variables, and functions can't be exported." >> >> So I could do with some advice now on how to proceed … is the goal to keep posix shell compliance? Wait for a tracetool.py version? Or should I go back to messing with SHELL? > > I think #!/bin/bash is a better solution in the short-term. Breaks if it's in /usr/gnu/bin or /opt/SUNWfoo/bin. :) Just like Python scripts can't rely on #!/usr/bin/env python on BeOS/Haiku in lack of /usr. The world is complicated. Andreas