project save and loading
xrkk opened this issue · 5 comments
I tested blow code to save and load project with rzpipe, but it Hangs.
import rzpipe
# project file "bin-ls" created in current directory
rz = rzpipe.open("/bin/ls")
rz.cmd('Ps bin-ls')
# Another session
rz = rzpipe.open("--")
rz.cmd('Po bin-ls') # it hangs here
What Rizin version and platform do you use?
if you are using dev, the --
arg has been changed to ==
to follow more the unix philosophy since normally when you do some_command -
you are saying to read from stdin.
What Rizin version and platform do you use?
I used rizin-v0.2.1-static-x86_64.tar.xz
from Release page, run in WSLv1.
I did below test:
- in rizin shell, open
/bin/ls
and save project asbinls_shell
- in rzpipe, open
/bin/ls
and save project asbinls_pipe
- in rzpipe, try load project
binls_shell/binls_pipe
, both hangs. - in rizin shell, open project
binls_shell
success butbinls_pipe
hangs.
@wargio I used --
, because rizin cannot open ==
in my tested version.
Well, just tested again on Ubuntu 18.04.
4 steps same as above, but produced different result in step 3: rzpipe can load binls_pipe
(still hangs when loading binls_shell
)
I think I found the problem. Probably Po
restores the value of scr.prompt
, thus the rzpipe breaks . cc @thestr4ng3r