From 767ffbfc47c1ac6dfa673ec90352f5abb82d4288 Mon Sep 17 00:00:00 2001 From: chenziyang Date: Wed, 14 Jun 2023 16:01:16 +0800 Subject: [PATCH] update readline.spec. Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈子扬 (cherry picked from commit ffd252ec95142a0fb3f30250d7d61d1ce6f9fcb8) --- readline.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readline.spec b/readline.spec index c77142d..f2eb0c1 100644 --- a/readline.spec +++ b/readline.spec @@ -1,6 +1,6 @@ Name: readline Version: 8.1 -Release: 2 +Release: 3 Summary: Readline library for editing typed command lines License: GPLv3+ @@ -77,8 +77,15 @@ export CPPFLAGS="-I%{_includedir}/ncurses" %exclude %{_infodir}/dir* %{_mandir}/man3/*.3.gz +%posttrans +if ! grep -q "enable-bracketed-paste" /etc/inputrc; then + echo "set enable-bracketed-paste 0" >> /etc/inputrc +fi %changelog +* Wed Jun 14 2023 chenziyang - 8.1-3 +- Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 + * Tue Oct 25 2022 yanglongkang - 8.1-2 - rebuild for next release -- Gitee