crystal-community / icr

Interactive console for Crystal programming language
MIT License
505 stars 40 forks source link

Crashes when path contains spaces #112

Closed stellarpower closed 4 years ago

stellarpower commented 4 years ago

Hi,

Only just installed icr, it seems that it crashes when my pwd contains any spaces: 'executing' any command from the REPL returns the error:

Error: unknown command: /first/part/of/path

And then accessing __ causes an unhandled IndexError and prints a stack trace.

More than happy to provide more info, please could you tell me what would be useful? I'm running Mint but have crystal installed via snap, as Ubuntu packages often lag quite a bit behind the latest.

Thanks for the good work, I have always been a fan of ruby for scripting and lighter purposes, and it looks like Crystal will take the approach one step further and remove the qualms I have with duck typing etc. for general use and make a much more useable language. For me, being able to use icr in the same way as irb will make it faster for me to learn and also keep the dynammic aspect of ruby that makes it useful as a language, so I appreciate the effort!

veelenga commented 4 years ago

Reproduced. Thanks for reporting, will take care.