We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53899d commit a8feef1Copy full SHA for a8feef1
doc/Type/IO.pod6
@@ -313,12 +313,13 @@ C<False>.
313
314
sub run(*@args ($, *@) --> Proc)
315
316
-Runs an external command without involving a shell (if possible).
+Runs an external command without the shell interpreting special characters.
317
318
- run ‚touch‘, ‚>foo.txt‘;
319
- shell ‚ls \>*‘;
320
- run Q:w{rm >foo.txt};
321
- # OUTPUT: «>foo.txt»
+ run 'touch‘, '>foo.txt‘;
+ run 'ls', '>foo.txt'; # OUTPUT: «>foo.txt»
+ run 'ls', '*f'; # OUTPUT: «ls: cannot access *: No such file or directory»
+ run 'rm', '>foo.txt';
322
+ run 'ls', '>foo.txt'; # OUTPUT: «ls: cannot access >foo: No such file or directory»
323
324
See L<Proc|/type/Proc> for more details, for example on how to capture
325
output.
0 commit comments