From 8575eb3f5bd5077e2a31cbfe027a80c2e1916300 Mon Sep 17 00:00:00 2001 From: WATANABE Yuki Date: Fri, 23 Jun 2023 00:16:30 +0900 Subject: [PATCH] Update documentation for impl Command for SimpleCommand --- yash-semantics/src/command/simple_command.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yash-semantics/src/command/simple_command.rs b/yash-semantics/src/command/simple_command.rs index 3a0693ca..5a70cab9 100644 --- a/yash-semantics/src/command/simple_command.rs +++ b/yash-semantics/src/command/simple_command.rs @@ -111,6 +111,10 @@ use yash_syntax::syntax::Redir; /// After executing the function body, the contexts are /// [popped](yash_env::variable::VariableSet::pop_context). /// +/// If the execution results in a [`Divert::Return`], it is consumed, and its +/// associated exit status, if any, is set as the exit status of the simple +/// command. +/// /// ## External utility /// /// If the target is an external utility, a subshell is created. Redirections