We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a984b commit 3834d6eCopy full SHA for 3834d6e
1 file changed
src/lib.rs
@@ -27,13 +27,13 @@ use nix::{
27
///
28
/// @example
29
/// import { execvp } from '@alphahydrae/exec';
30
-/// execvp('ls', ['ls', '-l', '.']);
+/// execvp('ls', ['/bin/ls', '-l', '.']);
31
32
/// @param {string} file The file to execute. If not a path, the PATH environment
33
/// variable is searched.
34
/// @param {string[]} args The arguments to pass to the new process. Note that
35
-/// the first argument should be the name of the file
36
-/// being executed.
+/// the first argument, by convention, should point to
+/// the filename associated with the file being executed.
37
/// @throws {Error} If the execvp system call fails.
38
pub fn execvp(file: String, args: Vec<String>) -> Result<()> {
39
let file = convert_string(file.clone())?;
0 commit comments