rainbowstream
rainbowstream copied to clipboard
Piped text causes rainbowstream to repeat its prompt forever
Steps to Reproduce
- Run the following:
echo h | rainbowstream
Expected Result
Have the prompt appear after it's done interpreting commands from the pipe.
OR
Bail after it's done receiving things over the pipe.
Actual Result
rainbowstream understands the input, but the prompt keeps repeating forever.
See https://asciinema.org/a/3k4rj1xg0aeonycyq3ju2tp69 for more information.
Also, while the prompt is garbled, that's an entirely different issue that already has a PR to fix it.
Thanks - will look further into it
Just tried the same thing and the prompt still repeats forever. Would be nice to be able to do this. Sample use case would be echo t test | rainbowstream
to send a quick tweet.
LSB Version: core-11.0.1ubuntu1-noarch:printing-11.0.1ubuntu1-noarch:security-11.0.1ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
Perl
perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi
After watching the video link and seeing what is supposed to happen, mine does the same thing. Was being a bit slow on the uptake.
BUMP
has anyone figured this out?
You may need to pass the carriage returns (to terminate the tweet) and exit()
to close rainbowstream again:
echo 't hello world\n\nexit()' | rainbowstream