Skip to content

Commit 987f735

Browse files
CurtTilmeszoffixznet
authored andcommitted
Added a note about run/shell exceptions due to non-zero exits (#1294)
* Add section on rendering Pod to Text * typo head => head2 * Add note about run/shell exceptions
1 parent 4804128 commit 987f735

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/Language/ipc.pod6

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ all output pipes, the program will usually not terminate.
3838
}
3939
$git.out.close();
4040
41+
If the program fails (exits with a non-zero exit code), it will throw
42+
an exception when the return object is sunk. You can capture the
43+
L<Proc|/type/Proc> object to avoid this if needed.
44+
45+
my $don't-die = run '/bin/false';
46+
4147
You can tell the C<Proc> object to capture output as a file handle by passing
4248
the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.
4349

0 commit comments

Comments
 (0)