Course of Raku / Objects, I/O, and exceptions / Input and output / Running external programs 🆕 / run and shell

Quiz — Running programs

Which function passes its command through the system shell, allowing pipes and redirection?

0run
1shell
0exec
0system

shell passes a single string to the shell, which interprets features like pipes. run launches a program directly with separate arguments and no shell, which is safer and the better default.

Course navigation

run and shell   |   Capturing output