Remove new lines with bash

This commit is contained in:
pagedown 2022-02-23 14:09:13 +08:00
parent e0c84c7176
commit 741ef7f115
No known key found for this signature in database
GPG key ID: E921CF18AC8FF6EB

View file

@ -20,8 +20,8 @@ _ksi_main() {
_ksi_debug_print() {
# print a line to STDOUT of parent kitty process
builtin local b=$(builtin command base64 <<< "${@}" | tr -d \\n)
builtin printf "\eP@kitty-print|%s\e\\" "$b"
builtin local b=$(builtin command base64 <<< "${@}")
builtin printf "\eP@kitty-print|%s\e\\" "${b//\\n}"
# "
}