Output of command only works once
beanilsson opened this issue · comments
I just realised that the mistake was my own. One cannot use single quotes for strings in crystal, but double quotes should be used. Funny though how icr seems to freeze when single quotes are used, that ought to be a bug? Maybe there should be some sort of error message printed to the user as well? Like: Double quotes must be used. And then prompting for new input.
The bug is that you used the Char literal and not String literal. Crystal throws an error for that I believe, so we just need to catch that error and return it. That should be an easy fix.