[OE-core] [PATCH] toolchain-scripts.bbclass: unset command_not_found_handle

Christopher Larson clarson at kergoth.com
Tue Dec 1 04:08:13 UTC 2015


On Mon, Nov 30, 2015 at 11:04 PM, Robert Yang <liezhi.yang at windriver.com>
wrote:

> On 12/01/2015 11:48 AM, Christopher Larson wrote:
>
>> On Mon, Nov 30, 2015 at 3:50 AM, Fang Jia <fang.jia at windriver.com
>> <mailto:fang.jia at windriver.com>> wrote:
>>
>>     On Ubuntu-system, When sourcing the env.sh from an exported sdk, and
>>     running a bogus linux command (for example "asd"), a core dump of
>>     python is usually generated.
>>
>>     Unset the command_not_found_handle to fix it.
>>
>>     Signed-off-by: Fang Jia <fang.jia at windriver.com <mailto:
>> fang.jia at windriver.com>>
>>
>>
>> Will this syntax be valid for non-bash environments? What about dash and
>> zsh?
>>
>
> unset is part of posix shell, I think it's fine to use it here.


Ah, good point, for some reason I read it as unsetopt, but yes, clearly
unset is portable, ignore me. :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151130/75dbe676/attachment-0002.html>


More information about the Openembedded-core mailing list