Anonymous user
Execute a system command: Difference between revisions
→{{header|D}}: add implementation
m (→{{header|Ruby}}: read from command through a pipe) |
(→{{header|D}}: add implementation) |
||
Line 90:
<lang lisp>(trivial-shell:shell-command "ls")</lang>
=={{header|D}}==
Note that this does not return the output of the command, other than the return value. That functionality can be accomplished via a call to shell().
<lang d>
std.process.system("ls");
</lang>
=={{header|dc}}==
|