From 4f7902315994a67c0e42486c0c2357f5e0716445b780281eb8be5490b3465da2 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 22 Oct 2018 07:08:50 +0000 Subject: [PATCH] mksh doesnot support =~ (boo#1104531) OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=96 --- PS1-completion-boo903362.patch | 2 +- bash-completion.changes | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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