Skip to content

Windown 10: retdec-decompiler.sh - strange behavior #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tiemichael opened this issue Jul 3, 2018 · 3 comments
Closed

Windown 10: retdec-decompiler.sh - strange behavior #350

Tiemichael opened this issue Jul 3, 2018 · 3 comments

Comments

@Tiemichael
Copy link

The simple command bashbash retdec-decompiler.sh test.exe provides different results, depending on how the path to 'retdec-decompiler.sh' is specified.
Only when including the 'C:' it's working (3rd case)

C:\Users\Michael>bash retdec-decompiler.sh test.exe /c/retdec/bin/retdec-decompiler.sh: line 23: ./retdec-utils.sh: No such file or directory /c/retdec/bin/retdec-decompiler.sh: line 169: get_realpath: command not found /c/retdec/bin/retdec-decompiler.sh: line 170: get_realpath: command not found

C:\Users\Michael>bash \retdec\bin\retdec-decompiler.sh test.exe \retdec\bin\retdec-decompiler.sh: line 23: ./retdec-utils.sh: No such file or directory \retdec\bin\retdec-decompiler.sh: line 169: get_realpath: command not found \retdec\bin\retdec-decompiler.sh: line 170: get_realpath: command not found

C:\Users\Michael>bash c:\retdec\bin\retdec-decompiler.sh test.exe Checking if file is a Mach-O Universal static library... RUN: c:/retdec/bin/retdec-macho-extractor --list C:/Users/Michael/test.exe

'c:\retdec\bin' is included in the PATH.
'bash' points to C:\msys64\usr\bin\bash.exe

@silverbacknet
Copy link

silverbacknet commented Jul 4, 2018

retdec-decompiler.sh uses a few shortcuts that make it not support being run outside of retdec's /bin folder, on any platform, though it seems like absolute path works. Patches are welcome. You might look into the Python branch, which doesn't have this limitation, currently at https://github.com/TheCodez/retdec/tree/bash_to_python

@PeterMatula
Copy link
Collaborator

I will not look into this. We are working on Bash to Python re-implementation of all the scripts. I hope it will be ready soon and it will solve all these problems. Will check up on this once it is done.

@PeterMatula
Copy link
Collaborator

Bash scripts were replaced by Python scripts (see #147 #338). A new binary release will follow in a few days. If there are new problems, please create new issues, but this one is no longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants