Execute a system command: Difference between revisions
Content added Content deleted
(add BQN) |
|||
Line 338: | Line 338: | ||
Works with any Funge-98 on Unix, try https://tio.run/##S0pNK81LT9W1tNAtqAQz//9XKs5RsnX4/x8A |
Works with any Funge-98 on Unix, try https://tio.run/##S0pNK81LT9W1tNAtqAQz//9XKs5RsnX4/x8A |
||
<lang befunge>"sl"=@;pushes ls, = executes it, @ ends it;</lang> |
<lang befunge>"sl"=@;pushes ls, = executes it, @ ends it;</lang> |
||
=={{header|BQN}}== |
|||
<code>•SH</code> is a function defined in the BQN spec, which provides output from a shell command. |
|||
The arguments to <code>•SH</code> are the command, followed by its arguments as a flat list of strings. For example: |
|||
<lang bqn>•SH ⟨"ls"⟩</lang> |
|||
Will give an output as a list of three elements: the command's exit code, text written to stdout, and text written to stderr. |
|||
=={{header|Bracmat}}== |
=={{header|Bracmat}}== |