Dont rely on env -0 for bash either

This commit is contained in:
Kovid Goyal
2022-04-15 13:33:32 +05:30
parent bde468594e
commit e71b9091a3
3 changed files with 55 additions and 9 deletions

View File

@@ -276,7 +276,7 @@ case :$SHELLOPTS: in
*:posix:*) ;;
*)
clone-in-kitty() {
builtin local data="argv=${_ksi_prompt[argv]},cwd=$(builtin printf "%s" "$PWD" | builtin command base64),env=$(builtin command env -0 | builtin command base64)"
builtin local data="argv=${_ksi_prompt[argv]},cwd=$(builtin printf "%s" "$PWD" | builtin command base64),envfmt=bash,env=$(builtin export | builtin command base64)"
while :; do
case "$1" in
"") break;;