Skip to content
New issue

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

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

Already on GitHub? # to your account

Update repl.py #18

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Update repl.py #18

merged 1 commit into from
Mar 28, 2024

Conversation

Xplo8E
Copy link
Contributor

@Xplo8E Xplo8E commented Mar 28, 2024

Checklist

  • Closing issues: #issue
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some documentation

Description

In r2ai repl, when running system commands with !, this error is came.

Screenshot 2024-03-28 at 9 49 36 PM

adding import os fixed the issue

Screenshot 2024-03-28 at 9 52 00 PM

when running system commands with !, this error is came.
```
File "/Users/apple/r2ai/r2ai/repl.py", line 287, in runline
    os.system(usertext[1:])
    ^^
NameError: name 'os' is not defined. Did you forget to import 'os'
```

adding `import os` fixed the issue
@trufae trufae merged commit d80451e into radareorg:master Mar 28, 2024
@trufae
Copy link
Contributor

trufae commented Mar 28, 2024

Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants