diff options
Diffstat (limited to 'doc/redirfd.html')
-rw-r--r-- | doc/redirfd.html | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/redirfd.html b/doc/redirfd.html index 94135a9..a8efdd8 100644 --- a/doc/redirfd.html +++ b/doc/redirfd.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 redirfd command</title> - <meta name="Description" content="execline: the redirfd command" /> - <meta name="Keywords" content="execline command redirfd" /> + <title>execline: the < command</title> + <meta name="Description" content="execline: the < command" /> + <meta name="Keywords" content="execline command <" /> <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> --> </head> <body> @@ -16,21 +16,21 @@ <a href="//skarnet.org/">skarnet.org</a> </p> -<h1> The <tt>redirfd</tt> program </h1> +<h1> The <tt><</tt> program </h1> <p> -<tt>redirfd</tt> redirects a given file descriptor to a file, then +<tt><</tt> redirects a given file descriptor to a file, then executes a program. </p> <h2> Interface </h2> <pre> - redirfd [ -r | -w | -u | -a | -c | -x ] [ -n | -b ] <em>fd</em> <em>file</em> <em>prog...</em> + < [ -r | -w | -u | -a | -c | -x ] [ -n | -b ] <em>fd</em> <em>file</em> <em>prog...</em> </pre> <p> -<tt>redirfd</tt> redirects the file descriptor number <em>fd</em> +<tt><</tt> redirects the file descriptor number <em>fd</em> to <em>file</em>, then execs into <em>prog...</em>. </p> @@ -57,18 +57,18 @@ to blocking mode if it was. </li> <h2> Notes </h2> <ul> - <li> <tt>redirfd -r <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to + <li> <tt>< -r <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>n</em><<em>file</em>'</tt></li> - <li> <tt>redirfd -w <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to + <li> <tt>< -w <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>n</em>><em>file</em>'</tt></li> - <li> <tt>redirfd -u <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to + <li> <tt>< -u <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>n</em><><em>file</em>'</tt></li> - <li> <tt>redirfd -a <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to + <li> <tt>< -a <em>n</em> <em>file</em> prog...</tt> is roughly equivalent to <tt>sh -c 'exec prog... <em>n</em>>><em>file</em>'</tt></li> - <li> <tt>redirfd -c <em>n</em> <em>file</em> prog...</tt> has no portable + <li> <tt>< -c <em>n</em> <em>file</em> prog...</tt> has no portable shell equivalent. Some shells provide the <em>noclobber</em> option for a similar feature. </li> - <li> <tt>redirfd -x <em>n</em> <em>file</em> prog...</tt> has no portable + <li> <tt>< -x <em>n</em> <em>file</em> prog...</tt> has no portable shell equivalent.</tt> </li> </ul> @@ -81,19 +81,19 @@ named pipes. <ul> <li> Opening a fifo for reading, blocking if there is no writer: -<tt>redirfd -r <em>n</em> <em>fifo</em> prog...</tt></li> +<tt>< -r <em>n</em> <em>fifo</em> prog...</tt></li> <li> Opening a fifo for reading, with instant success even if there is no writer, and blocking at the first attempt to read from it: -<tt>redirfd -r -nb <em>n</em> <em>fifo</em> prog...</tt></li> +<tt>< -r -nb <em>n</em> <em>fifo</em> prog...</tt></li> <li> Opening a fifo for writing, blocking if there is no reader: -<tt>redirfd -w <em>n</em> <em>fifo</em> prog...</tt></li> +<tt>< -w <em>n</em> <em>fifo</em> prog...</tt></li> <li> Opening a fifo for writing, with instant success even if there is no reader: -<tt>redirfd -w -nb <em>n</em> <em>fifo</em> prog...</tt>. Warning: +<tt>< -w -nb <em>n</em> <em>fifo</em> prog...</tt>. Warning: the first attempt to write to the fifo will raise a SIGPIPE if there is still no reader at that time. The named pipe semantics normally do not allow a fifo to be open for writing without a reading end, and you -should know what you are doing if you're using <tt>redirfd</tt> +should know what you are doing if you're using <tt><</tt> this way. </li> </ul> |