abbr: Print optional set-cursor arg correctly

Allows the output to round-trip.

Fixes #11141
This commit is contained in:
Fabian Boehm
2025-02-07 12:28:37 +01:00
parent 414293521e
commit b50c832a35
2 changed files with 5 additions and 1 deletions

View File

@@ -204,3 +204,7 @@ abbr --add regex_name --regex '(*UTF).*' bar
# CHECKERR: abbr: Regular expression compile error: using UTF is disabled by the application
# CHECKERR: abbr: (*UTF).*
# CHECKERR: abbr: ^
abbr --add foo --set-cursor 'foo % bar'
abbr | grep foo
# CHECK: abbr -a --set-cursor='%' -- foo 'foo % bar'