|
|
|
|
|
by yes_or_gnome
2933 days ago
|
|
I'm not a JS developer, so this as much of a question as it is a statement. `exec` is a system call and doesn't call bash or any other shell. At least, it shouldn't. If it does, then it would be wrong to assume that bash is even available. Either way. The single quote sytax is specific to bash (and maybe sh, dash, etc. I'm not certain.) so, don't rely upon it. |
|
exec is not a system call in nodejs, it's just a convenience function that sets up a child process and spawns a shell (of your choosing) and then passes the first argument as the single command.