summaryrefslogtreecommitdiffhomepage
path: root/src/exec.c
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-23 11:50:17 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-23 11:50:17 -0600
commitb6574b2f3cb86d33d7e55985c7914dfce6dbf296 (patch)
tree22449ab76bbe49bed35b5e6c54019d2802301d6a /src/exec.c
parent2161b3c2de4eec4cc5f28cbf683f25acd3c7dbef (diff)
parenta847b938b372995762c8ab581c0be521fd2e8bcb (diff)
downloadzash-docs/logo-and-clean.tar.gz
Merge origin/main into docs/logo-and-cleandocs/logo-and-clean
Resolutions: README.md and DESIGN.md keep the new colour logo (packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer shellcheck header, lists `make docs` in the usage block, and `clean` removes docs, cov and $(ZTOOLS) along with the branch's new tools.
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/exec.c b/src/exec.c
index 72e718c..4758440 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -863,17 +863,6 @@ static void assign_temp(const simple_cmd *sc) {
}
/**
- * @brief Run an external command.
- *
- * @param sc The prepared command.
- * @param flags EV_EXIT allows replacing the shell with exec.
- * @param in Descriptor for its stdin, or -1.
- * @param out Descriptor for its stdout, or -1.
- * @param async When not NULL, receives the pid and the command is not
- * waited for (pipeline stages, `&`, command substitution).
- * @return The exit status. 0 for an async launch.
- */
-/**
* @brief Apply `_TAG_REDIR_*` assignments given on an external command.
*
* Assignments before an external command go only into its environment,
@@ -918,6 +907,17 @@ static void tag_prefix_end(const tag_mode saved[3], int in, int out) {
memcpy(tag_redir, saved, sizeof tag_redir);
}
+/**
+ * @brief Run an external command.
+ *
+ * @param sc The prepared command.
+ * @param flags EV_EXIT allows replacing the shell with exec.
+ * @param in Descriptor for its stdin, or -1.
+ * @param out Descriptor for its stdout, or -1.
+ * @param async When not NULL, receives the pid and the command is not
+ * waited for (pipeline stages, `&`, command substitution).
+ * @return The exit status. 0 for an async launch.
+ */
static int run_external(simple_cmd *sc, unsigned flags, int in, int out,
pid_t *async) {
const node *n = sc->n;