diff options
Diffstat (limited to 'doc/fdmove.html')
-rw-r--r-- | doc/fdmove.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/fdmove.html b/doc/fdmove.html index 39bdb2b..f8cf841 100644 --- a/doc/fdmove.html +++ b/doc/fdmove.html @@ -3,9 +3,9 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="en" /> - <title>execline: the fdmove program</title> - <meta name="Description" content="execline: the fdmove program" /> - <meta name="Keywords" content="execline command fdmove file descriptor dup dup2" /> + <title>execline: the >& program</title> + <meta name="Description" content="execline: the >& program" /> + <meta name="Keywords" content="execline command >& file descriptor dup dup2" /> <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> --> </head> <body> @@ -16,23 +16,23 @@ <a href="//skarnet.org/">skarnet.org</a> </p> -<h1> The <tt>fdmove</tt> program </h1> +<h1> The <tt>>&</tt> program </h1> <p> -<tt>fdmove</tt> moves or copies a given file descriptor, then +<tt>>&</tt> moves or copies a given file descriptor, then executes a program. </p> <h2> Interface </h2> <pre> - fdmove [ -c ] <em>fdto</em> <em>fdfrom</em> <em>prog...</em> + >& [ -c ] <em>fdto</em> <em>fdfrom</em> <em>prog...</em> </pre> <p> -<tt>fdmove</tt> moves the file descriptor number <em>fdfrom</em>, +<tt>>&</tt> moves the file descriptor number <em>fdfrom</em>, to number <em>fdto</em>, then execs into <em>prog</em> with its arguments. -If <em>fdto</em> is open, <tt>fdmove</tt> closes it before moving +If <em>fdto</em> is open, <tt>>&</tt> closes it before moving <em>fdfrom</em> to it. </p> @@ -46,9 +46,9 @@ instead of moving it; do not close <em>fdfrom</em>. </li> <h2> Notes </h2> <ul> - <li> <tt>fdmove -c <em>a</em> <em>b</em> prog...</tt> is roughly equivalent to + <li> <tt>>& -c <em>a</em> <em>b</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>a</em>>&<em>b</em>'</tt></li> - <li> <tt>fdmove <em>a</em> <em>b</em> prog...</tt> is roughly equivalent to + <li> <tt>>& <em>a</em> <em>b</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>a</em>>&<em>b</em> <em>b</em><&-'</tt></li> </ul> |