Execute a system command: Difference between revisions
Content added Content deleted
(→{{header|Go}}: Improvements: send output straight to stdout rather than capture and print, preserve stderr output, return exit code, group imports.) |
(added FunL) |
||
Line 340: | Line 340: | ||
call system("ls") |
call system("ls") |
||
end program SystemTest</lang> |
end program SystemTest</lang> |
||
=={{header|FunL}}== |
|||
<lang funl>import sys.execute |
|||
execute( if $os.startsWith('Windows') then 'dir' else 'ls' )</lang> |
|||
=={{header|Go}}== |
=={{header|Go}}== |