First of all, I just want to say thanks for writing shelljs. It cleans up my code a lot.
I need to invoke commands with shell.exec(), however, those commands will include some input from external sources, to be passed as arguments to system executables. Is there a "safe" way to do this? I was hoping for the classic array syntax, like:
shell.exec(["ls", "-l", "/some/path"])
Though this doesn't seem to be implemented. It doesn't appear nodejs itself even has a shell escape function neither. Any plans on this front?
First of all, I just want to say thanks for writing shelljs. It cleans up my code a lot.
I need to invoke commands with
shell.exec(), however, those commands will include some input from external sources, to be passed as arguments to system executables. Is there a "safe" way to do this? I was hoping for the classic array syntax, like:Though this doesn't seem to be implemented. It doesn't appear nodejs itself even has a shell escape function neither. Any plans on this front?