add exec() and exec_bg() builtins to El runtime
- exec(cmd) -> String: runs shell command, captures stdout, 30s timeout - exec_bg(cmd) -> String: forks command in background, returns PID string - add both to codegen arity table (builtin_arity) - rebuild elc with updated arity table (self-hosting, identity-verified) - update release snapshot at releases/v1.0.0-20260501/
This commit is contained in:
@@ -2049,6 +2049,11 @@ fn builtin_arity(name: String) -> Int {
|
||||
if str_eq(name, "bool_to_str") { return 1 }
|
||||
// Process
|
||||
if str_eq(name, "exit_program") { return 1 }
|
||||
// Subprocess execution
|
||||
if str_eq(name, "exec_command") { return 1 }
|
||||
if str_eq(name, "exec_capture") { return 1 }
|
||||
if str_eq(name, "exec") { return 1 }
|
||||
if str_eq(name, "exec_bg") { return 1 }
|
||||
// CGI / DHARMA
|
||||
if str_eq(name, "dharma_connect") { return 1 }
|
||||
if str_eq(name, "dharma_send") { return 2 }
|
||||
|
||||
Reference in New Issue
Block a user