Lead users to os/execute over os/shell for most cases.

This commit is contained in:
Calvin Rose
2026-08-30 10:54:24 -05:00
parent ee5d2cd99c
commit 7575929fe3
+2 -1
View File
@@ -1636,7 +1636,8 @@ static JanetEVGenericMessage os_shell_subr(JanetEVGenericMessage args) {
JANET_CORE_FN(os_shell,
"(os/shell str)",
"Pass a command string str directly to the system shell.") {
"Pass a command string `str` directly to the system shell. Prefer `os/execute` "
"in most cases.") {
janet_sandbox_assert(JANET_SANDBOX_SUBPROCESS);
janet_arity(argc, 0, 1);
const char *cmd = argc