gay icon indicating copy to clipboard operation
gay copied to clipboard

Using just the command gay in cmd line will indefinetly hang

Open FranPhobia opened this issue 4 years ago • 1 comments

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

FranPhobia avatar Jul 08 '20 16:07 FranPhobia

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.

ms-jpq avatar Jul 08 '20 17:07 ms-jpq