From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8X4a-0000yk-EE for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:20:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8X4U-0005JP-41 for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:19:59 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:60005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8X4T-0005JF-Qm for qemu-devel@nongnu.org; Fri, 16 Mar 2012 09:19:54 -0400 Received: by dadp14 with SMTP id p14so6259211dad.4 for ; Fri, 16 Mar 2012 06:19:51 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4F633DF1.8010903@redhat.com> Date: Fri, 16 Mar 2012 14:19:45 +0100 From: Paolo Bonzini 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> In-Reply-To: <1EA6E838-00B8-45F3-A293-BF495BF07F7B@nowonline.co.uk> 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: Lee Essen Cc: =?windows-1252?Q?Andreas_F=E4rber?= , qemu-devel@nongnu.org, Stefan Hajnoczi 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. Paolo