run-external
for system
Runs external command.
Signature
> run-external {flags} (command) ...rest
Parameters
command
: External command to run....rest
: Arguments for external command.
Input/output types:
input | output |
---|---|
any | any |
Examples
Run an external command
> run-external "echo" "-n" "hello"
Redirect stdout from an external command into the pipeline
> run-external "echo" "-n" "hello" | split chars
Redirect stderr from an external command into the pipeline
> run-external "nu" "-c" "print -e hello" e>| split chars