From 9733a98ff6c336bf2d6055705316b511b604ec71 Mon Sep 17 00:00:00 2001 From: shixuantong Date: Thu, 23 Jan 2025 17:32:43 +0800 Subject: [PATCH] Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 (cherry picked from commit e76a14179d67f2b1886e44d3c8e16ce3a02cceed) --- readline.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readline.spec b/readline.spec index d449cc5..5a64276 100644 --- a/readline.spec +++ b/readline.spec @@ -1,6 +1,6 @@ Name: readline Version: 8.2 -Release: 3 +Release: 4 Summary: Readline library for editing typed command lines License: GPLv3+ @@ -79,8 +79,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 +* Thu Jan 23 2025 shixuantong - 8.2-4 +- Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0 + * Wed Jan 8 2025 beta - 8.2-3 - backport patch to fix segmentation fault problem -- Gitee