dup2#

Duplicate $fd1 onto $fd2, closing $fd2 first if necessary.

Σύνοψη#

POSIX::dup2($fd, 1);   # redirect stdout to $fd

Τι επιστρέφεται#

The target fd on success, undef on failure. Either argument being negative is rejected with $! set to EBADF.

Διαφορές από το upstream#

Fully compatible with upstream POSIX.