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

Robert Yang liezhi.yang at windriver.com
Tue Dec 1 04:04:11 UTC 2015



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.

// Robert

> You have to be careful to use portable constructs in a script which is sourced
> like this.
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
>



More information about the Openembedded-core mailing list