]> code.ossystems Code Review - openembedded-core.git/commit
bash: explicitly define NON_INTERACTIVE_LOGIN_SHELLS in CFLAGS
authorChen Qi <Qi.Chen@windriver.com>
Tue, 21 Apr 2015 09:30:47 +0000 (17:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Apr 2015 10:05:58 +0000 (11:05 +0100)
commit33af68d62bb427c588f5eeecb75fbc31b55f8459
tree97010459f1c084f8991e9cb8c611438547da88fa
parent6820f05dad0b4f9b9bbcf7c2a0af8c34f66199ae
bash: explicitly define NON_INTERACTIVE_LOGIN_SHELLS in CFLAGS

If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
startup files, even if they are not interactive.

This is the behaviour of other major distros like Ubuntu and Fedora.
We also need to set it so that when executing `su -l xxx -c env' command,
/etc/profile is parsed.

[YOCTO #5359]
[YOCTO #7137]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/bash/bash.inc