forked from pool/python-pexpect
python3.12 gh#pexpect/pexpect#736#issuecomment-1427273882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=78
14 lines
468 B
Diff
14 lines
468 B
Diff
Index: pexpect-4.8.0/tests/fakessh/ssh
|
|
===================================================================
|
|
--- pexpect-4.8.0.orig/tests/fakessh/ssh
|
|
+++ pexpect-4.8.0/tests/fakessh/ssh
|
|
@@ -62,7 +62,7 @@ prompt = "$"
|
|
while True:
|
|
cmd = input(prompt)
|
|
if cmd.startswith('PS1='):
|
|
- prompt = eval(cmd[4:]).replace('\$', '$')
|
|
+ prompt = eval(cmd[4:]).replace(r'\$', '$')
|
|
elif cmd == 'ping':
|
|
print('pong')
|
|
elif cmd.startswith('ls'):
|