Use literal quoting for env vars sent over ssh by clone

This commit is contained in:
Kovid Goyal
2022-04-15 14:34:21 +05:30
parent 25f022cc14
commit 775584b5a5
3 changed files with 23 additions and 12 deletions

View File

@@ -143,7 +143,7 @@ copy --exclude */w.* d1
self.ae(len(glob.glob(f'{remote_home}/{tname}/*/xterm-kitty')), 2)
def test_ssh_env_vars(self):
tset = '$A-$(echo no)-`echo no2` "something"'
tset = '$A-$(echo no)-`echo no2` "something\nelse"'
for sh in self.all_possible_sh:
with self.subTest(sh=sh), tempfile.TemporaryDirectory() as tdir:
os.mkdir(os.path.join(tdir, 'cwd'))