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

Using just the command gay in cmd line will indefinetly hang #7

Open
FranPhobia opened this issue Jul 8, 2020 · 1 comment
Open

Comments

@FranPhobia
Copy link

When just using the command 'gay' alone, with specific flag arguments (when you call without -f), with colour arguments, and with interpolation arguments the command will hang indefinitely. I know its not the correct use but having something to error it out, or have it randomly print a flag, would be beneficial.
Any combination of those arguments used without -f or a input command, such as 'foo | gay' will hang until user presses ctrl+c.

*btw I love this so much, thank you <3

@ms-jpq
Copy link
Owner

ms-jpq commented Jul 8, 2020

Hi there,

This is actually an intended behaviour, I kept it so to keep it consistent with unix utilities like cat or tee.

I could intheory address it fairly easily by detecting if stdin is tty, then I can printout an error message, but I don't know if that is actually less confusing, because it would certainly be unexpected behaviour out of line with almost every single unix command that reads input streams.

I am not one of those people who take the unix tradition as gospel, so I am open to changing this if more people complain.

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