< prev index next >

samples/exec.js

Print this page

        

@@ -44,5 +44,7 @@
 $EXEC("ls", "" /* no stdin */, ["-l", "-a"])
 
 // Output of running external commands is returned from $EXEC:
 print($EXEC("ls"))
 
+// apply on $EXEC
+print($EXEC.apply(this, ["ls"]));
< prev index next >