From 49b387bb53e76eecd2b6cf4f89f3146fc2198bd3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Nov 2020 17:56:57 +0000 Subject: Fix chomping: only make it default on line-processing binaries --- doc/redirfd.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'doc/redirfd.html') diff --git a/doc/redirfd.html b/doc/redirfd.html index bb5a5fb..9dbe409 100644 --- a/doc/redirfd.html +++ b/doc/redirfd.html @@ -26,7 +26,7 @@ executes a program.

Interface

-     redirfd [ -r | -w | -u | -a | -c | -x ] [ -n ] [ -b ] fd file prog...
+     redirfd [ -r | -w | -u | -a | -x ] [ -n ] [ -b ] fd file prog...
 

@@ -37,7 +37,7 @@ to file, then execs into prog....

Options

- One and only one of the -r, -w, -u, -a, -c, or -x options must be given; + One and only one of the -r, -w, -u, -a, or -x options must be given; the -n and -b options may be added in any case.

@@ -46,7 +46,6 @@ the -n and -b options may be added in any case.
  • -w : open file for writing, truncating it if it already exists.
  • -u : open file for reading and writing.
  • -a : open file for appending, creating it if it doesn't exist.
  • -
  • -c : open file for appending. Do not create it if it doesn't exist.
  • -x : open file for writing, creating it, failing if it already exists.
  • -n : open file in non-blocking mode.
  • -b : change mode of file after opening it: @@ -65,9 +64,6 @@ to blocking mode if it was.
  • sh -c 'exec prog... n<>file'
  • redirfd -a n file prog... is roughly equivalent to sh -c 'exec prog... n>>file'
  • -
  • redirfd -c n file prog... has no portable -shell equivalent. Some shells provide the noclobber option for -a similar feature.
  • redirfd -x n file prog... has no portable shell equivalent.
  • -- cgit v1.3.1