Glavin001 / MrShell

Map-Reduce inspired Shell.
MIT License
4 stars 1 forks source link

Handle Quoted Arguments Correctly #19

Closed DylanYoung closed 9 years ago

DylanYoung commented 9 years ago

Try echo "blah blah" or git commit -m "blah blah" for example.

DylanYoung commented 9 years ago

This is likely a parsing problem

LizardLeliel commented 9 years ago

My only suggestion may be to try scanning the command line before the parsing stage, searching for strings sequentially and turning them into something the parser will be more comfortable with. That being said, I haven't been following along with the code very well (a bit busy x.x), so I'm not sure if this is viable, but I hope it helps in some way

Glavin001 commented 9 years ago

I implemented this with the backslash, so it skips. This will be a little bit more difficult, but still not bad. Do it in the parsing function.