Skip to content
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

Add -r that works like python -c, for one-liners #33

Open
d33tah opened this issue Aug 24, 2020 · 1 comment
Open

Add -r that works like python -c, for one-liners #33

d33tah opened this issue Aug 24, 2020 · 1 comment

Comments

@d33tah
Copy link

d33tah commented Aug 24, 2020

Thanks for bython, I like it! Could you add -r that reads the code from argv as opposed to the filename, so that I could use it in one-liners?

@martindorey
Copy link

I was so excited but, yeah, this was the closest I got to getting it to work - no error message, which seems surprising too:

martind@stormy:~$ echo 'for i in range(10) { print("please"); }' | ~/.local/bin/bython /dev/stdin
martind@stormy:~$ 

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

No branches or pull requests

2 participants