Function conch_runtime::eval::redirect_dup_write[][src]

pub fn redirect_dup_write<W, E: ?Sized>(
    dst_fd: Option<Fd>,
    src_fd: W,
    env: &E
) -> Redirect<W::EvalFuture> where
    W: WordEval<E>,
    E: IsInteractiveEnvironment

Evaluate a redirect which will either duplicate a writeable file descriptor as specified by src_fd into dst_fd, or close dst_fd if src_fd evaluates to -.

If fd is not specified, then STDOUT_FILENO will be used.