[OE-core] [PATCH] terminal: Disable shopt errexit

Richard Tollerton rich.tollerton at ni.com
Mon Mar 30 18:11:13 UTC 2015


"Burton, Ross" <ross.burton at intel.com> writes:

> On 18 December 2014 at 01:02, Richard Tollerton <rich.tollerton at ni.com>
> wrote:
>
>> `sh -e` causes any errors encountered during shell execution to abort
>> the shell. For terminal sessions like devshell, this causes errors
>> encountered while executing do_terminal to instantaneously kill the
>> session. This is explicitly not what we want for interactive/debugging
>> situations like with terminal, so just remove the '-e' from the sh
>> invocation.
>>
>
> This doesn't happen for me - starting a devshell and running "false"
> doesn't cause the terminal to exit.  I wonder what the difference between
> your environment and mine is.

Running `false` interactively doesn't test this behavior because `sh -e`
explicitly excludes interactive shells from consideration [1] [2].
You'll need to inject a `false` into run.do_terminal in order to
reproduce this.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#set
[2] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_01

> Ross



More information about the Openembedded-core mailing list