Add shell command to switch bracketed-paste mode from on to off to keep consistent with realine-8.0

(cherry picked from commit e76a14179d67f2b1886e44d3c8e16ce3a02cceed)
This commit is contained in:
shixuantong 2025-01-23 17:32:43 +08:00 committed by openeuler-sync-bot
parent ec48e8b135
commit 06e28b1731

View File

@ -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 <shixuantong1@huawei.com> - 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 <beta@yfqm.date> - 8.2-3
- backport patch to fix segmentation fault problem