Execute a system command: Difference between revisions

added FunL
(→‎{{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:
call system("ls")
end program SystemTest</lang>
 
=={{header|FunL}}==
<lang funl>import sys.execute
 
execute( if $os.startsWith('Windows') then 'dir' else 'ls' )</lang>
 
=={{header|Go}}==
Anonymous user