Use $PWD instead of pwd -P as we want the exact same cwd not the resolved one when cloning

This commit is contained in:
Kovid Goyal 2022-04-13 15:13:58 +05:30
parent c19e69855a
commit e187110611
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ def clone_and_launch(msg: str, window: Window) -> None:
continue continue
env[k] = v env[k] = v
elif k == 'cwd': elif k == 'cwd':
cwd = v.rstrip() cwd = v
opts = parse_opts_for_clone(args) opts = parse_opts_for_clone(args)
if cwd: if cwd:
opts.cwd = cwd opts.cwd = cwd

View File

@ -356,7 +356,7 @@ _ksi_deferred_init() {
} }
clone-in-kitty() { clone-in-kitty() {
builtin local data="pid=$$,cwd=$(builtin pwd -P | builtin command base64),env=$(builtin command env -0 | builtin command base64)" builtin local data="pid=$$,cwd=$(builtin printf "%s" "$PWD" | builtin command base64),env=$(builtin command env -0 | builtin command base64)"
while :; do while :; do
case "$1" in case "$1" in
"") break;; "") break;;