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

Richard Tollerton rich.tollerton at ni.com
Thu Dec 18 01:02:47 UTC 2014


`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.

Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
---
 meta/classes/terminal.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index e577c6d..51e9aa3 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -23,7 +23,7 @@ def emit_terminal_func(command, envdata, d):
     bb.utils.mkdirhier(os.path.dirname(runfile))
 
     with open(runfile, 'w') as script:
-        script.write('#!/bin/sh -e\n')
+        script.write('#!/bin/sh\n')
         bb.data.emit_func(cmd_func, script, envdata)
         script.write(cmd_func)
         script.write("\n")
-- 
2.1.3




More information about the Openembedded-core mailing list