faraazahmad / shellrb

A unix-like shell built in Ruby
MIT License
35 stars 24 forks source link

Shell breaks when using unexpected characters #13

Closed jacobherrington closed 7 years ago

jacobherrington commented 7 years ago

I was able to break the shell by using characters like '.' and ';'

SRB /Users/[username]/Projects/shellrb> a;kfjw;34tq
lib/app.rb:5:in `const_defined?': wrong constant name A;kfjw;34tq (NameError)
    from lib/app.rb:5:in `handle_commands'
    from lib/app.rb:27:in `block in <main>'
    from lib/app.rb:18:in `loop'
    from lib/app.rb:18:in `<main>'