commit: ab2ee2276aaca117ac4250923102b1ca6311ab42 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Dec 2 18:57:52 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Dec 2 18:58:52 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab2ee227
app-shells/bash: do not leave exit value non-zero in default profile script If the .bashrc file does not exist, then the one line check in the profile script leaves $? set to 1. Use a full if statement to avoid that. app-shells/bash/files/dot-bash_profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-shells/bash/files/dot-bash_profile b/app-shells/bash/files/dot-bash_profile index 94a6622..1de05a4 100644 --- a/app-shells/bash/files/dot-bash_profile +++ b/app-shells/bash/files/dot-bash_profile @@ -2,4 +2,6 @@ # This file is sourced by bash for login shells. The following line # runs your .bashrc and is recommended by the bash info pages. -[[ -f ~/.bashrc ]] && . ~/.bashrc +if [[ -f ~/.bashrc ]] ; then + . ~/.bashrc +fi