Closed jamacku closed 3 years ago
Fixed, thanks! Sorry it took so long.
christos
On Jun 18, 2021, at 2:13 PM, Jan Macku @.***> wrote:
alias postcmd '/bin/echo -n "COMMAND:"'"'"'!#:-$:gx'"'"''
No problem, thank you Christos!
Patches c14852867786c798f98a23d075e76a2e2acce204 and 04a68ad191cfcb87cdff70a6b913721e423cd28b fixing the issue. Verified on Fedora Rawhide (F35).
Description History breaks when using modifiers like
:gx
or:l
. Using the upper arrow for re-executing old commands from history doesn't always show the full command (please see below).How to reproduce
alias postcmd '/bin/echo -n "COMMAND:"'"'"'\!#:-$:gx'"'"''
echo 1 2 3 4 5
echo "a" 'b' "c"
↑
, then the command is missing last word. e.g.: When the last command wasecho 1 2 3 4 5
, then upon hitting↑
you will get onlyecho 1 2 3 4
. If you then hit the upper arrow one more time you will get the expected result:echo 1 2 3 4 5
.Expected outcome When hitting the upper arrow
↑
, while modifiers were set, show the full command from history.Note Originally reported in rhbz#1906064.