FDSWAP(1)

NAME
fdswap - swap two file descriptors, then execute a program

SYNOPSIS
fdswap fd1 fd2 prog...

DESCRIPTION
fdswap swaps file descriptors numbered fd1 and fd2, then exec(3) s into prog with its arguments.

fdswap has no portable shell equivalent.

SEE ALSO
emptyenv(1), envfile(1), exec(1), execline-cd(1), execline-umask(1), exit(1), export(1), fdblock(1), fdclose(1), fdmove(1), fdreserve(1), getcwd(1), getpid(1), heredoc(1), piperw(1), posix-cd(1), posix-umask(1), redirfd(1), trap(1), tryexec(1), unexport(1), wait(1), withstdinas(1), exec(3)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/fdswap.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)