Call system function

Hello, I have a question, how with Crystal I can call system function ? Like “echo” for example, others bash functions … etc

And verbose the output as well ?

I ask you because I seen Process.run function, but I need to split the main function and the arguments. But are there other way to do that ? (I found it’s not very practical)And with verbosity?

Something like this?
https://crystal-lang.org/api/1.1.0/toplevel.html#`(command):String-class-method

1 Like