Execute a system command: Difference between revisions

added Ursala
(added slate language)
(added Ursala)
Line 540:
 
exec ls
 
=={{header|Ursala}}==
The library function, ask, parameterized by a shell descriptor, such as bash,
spawns a process that interacts with that shell by feeding it a list of
commands, and returns a transcript of the interaction.
 
Here is a self-contained command line application providing a limited replacement
for the ls command.
<lang Ursala>#import std
#import cli
 
#executable ('parameterized','')
 
myls = <.file$[contents: --<''>]>@hm+ (ask bash)/0+ -[ls --color=no]-!</lang>
The color option is needed to suppress terminal escape sequences.
 
 
=={{header|Visual Basic}}==
Anonymous user