RosettaCodeData/Task/Execute-a-system-command/FunL/execute-a-system-command.funl

4 lines
81 B
Plaintext

import sys.execute
execute( if $os.startsWith('Windows') then 'dir' else 'ls' )