Skip to content

Commit a8feef1

Browse files
authored
tweak run words and examples
1 parent c53899d commit a8feef1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/Type/IO.pod6

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,13 @@ C<False>.
313313
314314
sub run(*@args ($, *@) --> Proc)
315315
316-
Runs an external command without involving a shell (if possible).
316+
Runs an external command without the shell interpreting special characters.
317317
318-
run ‚touch‘, ‚>foo.txt‘;
319-
shell ‚ls \>*‘;
320-
run Q:w{rm >foo.txt};
321-
# OUTPUT: «>foo.txt»
318+
run 'touch‘, '>foo.txt‘;
319+
run 'ls', '>foo.txt'; # OUTPUT: «>foo.txt»
320+
run 'ls', '*f'; # OUTPUT: «ls: cannot access *: No such file or directory»
321+
run 'rm', '>foo.txt';
322+
run 'ls', '>foo.txt'; # OUTPUT: «ls: cannot access >foo: No such file or directory»
322323
323324
See L<Proc|/type/Proc> for more details, for example on how to capture
324325
output.

0 commit comments

Comments
 (0)