commit 3c228f815e22c059db7d9a24bb38b480c3e9c4d6
parent fbcc883147cfa8333f850672a23f181f82c007bb
Author: Sebastian <sebastian@sebsite.pw>
Date: Sun, 29 Jan 2023 01:27:23 -0500
os::exec: update and fix doc comments
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/os/exec/cmd.ha b/os/exec/cmd.ha
@@ -15,10 +15,10 @@ use strings;
// If 'name' does not contain a '/', the $PATH will be consulted to find the
// correct executable. If path resolution fails, nocmd is returned.
//
-// let cmd = exec::cmd("echo", "hello world");
-// let proc = exec::start(&cmd);
-// let status = exec::wait(&proc);
-// assert(exec::status(status) == 0);
+// let cmd = exec::cmd("echo", "hello world")!;
+// let proc = exec::start(&cmd)!;
+// let status = exec::wait(&proc)!;
+// assert(exec::check(&status) is void);
//
// By default, the new command will inherit the current process's environment.
export fn cmd(name: str, args: str...) (command | error) = {