“infinite state”-bug report #103

Closed
maandree opened this Issue Oct 3, 2012 · 1 comment

2 participants

@maandree
Collaborator

I've been sent this bug report (which I have translated to English)

If you give the program invalid argument it will enter an infinite state
(waiting for IO)
Example run:

$ ponysay --hel
ponysay: warning: unrecognised option --hel
^CTraceback (most recent call last):
  File "/usr/games/ponysay", line 1787, in <module>
    Ponysay(opts)
  File "/usr/games/ponysay", line 75, in __init__
    else:                            self.print_pony(args)
  File "/usr/games/ponysay", line 566, in print_pony
    msg = ''.join(sys.stdin.readlines()).rstrip()
KeyboardInterrupt

Invalid arguments should:
Print and error message (could not understand "-hel" please type "--help" for
options)
And then invoke exit(-1) (or arbitrary fail number).

@jristz
Collaborator

Hey this is the old bug that I repport about the -fq is the same output
Aparently convinations suffer from the same bug

Any tipe of unrecogniced option, either miswrited or misordered or any cause the bug

@maandree maandree was assigned Oct 22, 2012
@maandree maandree closed this Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment