[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool |
Date: |
Fri, 16 Mar 2012 14:28:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2 |
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
- [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Lee Essen, 2012/03/16
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Paolo Bonzini, 2012/03/16
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Stefan Hajnoczi, 2012/03/19
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Lee Essen, 2012/03/19
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Stefan Hajnoczi, 2012/03/19
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Andreas Färber, 2012/03/19
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Lee Essen, 2012/03/19
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Stefan Hajnoczi, 2012/03/20
- Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool, Lee Essen, 2012/03/20