Closed tallsam closed 10 years ago
Your commit will fix the immediate problem but not the underlying problem. The problem with spaces happens because the code execs out to the shell which then calls the compiler. The shell is interpreting the spaces as splitting command line args. The solution is to not use the shell but invoke the compiler directly. We must switch from exec() to spawn(). On my todo list now. Thanks!
Fixed now. I switched from exec to execFile, which doesn't execute a subshell. It works with a sketch named 'foo bar'.
Hey Josh,
Under linux avr-g++ fails when passed a sketch with spaces in the name.
I had a shot at fixing this, i'm pretty new to Node though. Seems to work.
Cheers, Sam.