-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
I don't really like this sollution, I'd rather rely on node solving this and not invoking particular shells. c2e4d82 fixes the escaping so this is a bonus. On another note, I was think about supporting both |
@AlbertoGP Reconsidering this. Would this work on all platforms? It probably does since node does the same thing in its source. |
I didn't try it in Windows, but the idea was exactly to copy node: that's why I put a link to the original source code. |
I think we should try this, it looks good and gives us the best of both worlds ( |
Launch the command under a shell
Hi, I'm sorry to rear my ugly head again but there is a problem with #16: you can either use #13 with #16 (no quoting/escaping of arguments), or #15 without #16 (for arguments with spaces etc.). I copy here the test case from #13 (comment) with a correction: Prepare the test files:
Then run this:
It should create a directory called "test-dir-copy" with only the "text.txt" file in it, skipping ".git". |
On the contrary, your input is very welcome. It's great that you are taking the time to make this library better. I update Bringing back escaping passes your example above. I opened a ticket (#17) to include tests for command output (not the execution), something I wanted for a while now. @AlbertoGP do you maybe have some commands I could include for testing (commands known to execute successfully)? |
to get parsing of quoted arguments and
file name globbing, as in the old version that
used exec() instead of spawn()
Fixes #12 and maybe #11,
alternative to pull request #13