diff --git a/PS1-completion-boo903362.patch b/PS1-completion-boo903362.patch index 83a18ce..fa8284d 100644 --- a/PS1-completion-boo903362.patch +++ b/PS1-completion-boo903362.patch @@ -7,7 +7,7 @@ @@ -1,5 +1,5 @@ # Check for interactive bash and that we haven't already been sourced. -if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then -+if [[ -n "${BASH_VERSION-}" && $- =~ i && -z "${BASH_COMPLETION_VERSINFO-}" ]]; then ++if [[ -n "${BASH_VERSION-}" && $- = *i* && -z "${BASH_COMPLETION_VERSINFO-}" ]]; then # Check for recent enough version of bash. if [ ${BASH_VERSINFO[0]} -gt 4 ] || \ diff --git a/bash-completion.changes b/bash-completion.changes index 4bab093..5698490 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 22 07:06:51 UTC 2018 - Dr. Werner Fink + +- Modify patch PS1-completion-boo903362.patch to make it work with + mksh as well (boo#1104531) + ------------------------------------------------------------------- Thu Aug 2 13:25:06 UTC 2018 - antoine.belvire@opensuse.org