pub fn cmdsubst_outer_stdout() -> Option<i32>Expand description
!!! WARNING: RUST-ONLY HELPER !!!
No function of this name exists in Src/exec.c. This helper stands in for
reading the saved outer stdout fd of an in-progress $(...) capture. C
has no such stack: the capture happens in a forked child (getoutput,
c:4713) so the parent fd is never rebound.
Saved outer stdout fd for an in-progress $(...) capture (top of
the bridge’s CMDSUBST_OUTER_FDS stack), or None when not inside a
cmdsub. Used by the trap dispatcher to route a trap body’s stdout to
the parent terminal instead of the cmdsub-bound pipe (Bug #56).