fdmove — move/copy a file descriptor then chain
fdmove
[--copy] {to
} {from
} {next-prog
}
fdmove is a chain-loading utility that duplicates the (open) file descriptor from
to the descriptor to
, closes from
unless the --copy command line option is used, and then chain loads to next-prog
with the execvp(3) function.
next-prog
may contain its own command line options, which fdmove will ignore.