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

unix cli file pipe turns into endless loop #10

Closed
OtsoT opened this issue Feb 8, 2022 · 3 comments
Closed

unix cli file pipe turns into endless loop #10

OtsoT opened this issue Feb 8, 2022 · 3 comments
Assignees
Labels
bug Something isn't working cli Related to the CLI

Comments

@OtsoT
Copy link

OtsoT commented Feb 8, 2022

trying to pipe a file into rant-cli with '<' operator causes weird endless loop.

rant < public/rant.rant 
>> Heads
Tails
Heads
Heads
Heads
Tails
Heads
Heads
Heads
Heads

>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
@TheBerkin
Copy link
Member

That's certainly a strange one. I'll look into it.

@TheBerkin TheBerkin self-assigned this Feb 8, 2022
@TheBerkin
Copy link
Member

This is caused by the CLI failing to detect a redirected stdin, which causes the REPL to start. The next release will include a fix for this.

@TheBerkin TheBerkin added bug Something isn't working cli Related to the CLI labels Feb 8, 2022
@TheBerkin
Copy link
Member

The fix is live on master and has been tested on Windows and Linux. Feel free to close this as soon as you've verified the issue is solved on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the CLI
Projects
None yet
Development

No branches or pull requests

2 participants