Course of Raku / Objects, I/O, and exceptions / Input and output / Running external programs 🆕 / Exercises
Run a command
Problem
Use run to launch echo with two separate
arguments: home: and $HOME. Let its output go
to the screen. Notice that $HOME appears literally, and the
home directory is not printed — because
run does not involve a shell, there is no variable
expansion.
Example
The program prints:
home: $HOME