Pádraig Brady <[email protected]> writes:

> * tests/misc/paste.pl: Test all supported POSIX and GNU
> backslash escape sequences.
> ---
>  tests/misc/paste.pl | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Patch looks good to me.

I feel like this should be documented in the manual, so people aren't
suprised if other implementations do not handle some escape
sequences.

Here is a proposed patch:

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e8b24f768..7e89cb9e3 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -6294,6 +6294,30 @@ @node paste invocation
 %c_
 @end example
 
+The following backslash escape sequences are recognized in
+@var{delim-list}:
+
+@table @samp
+@item \n
+Newline.
+@item \t
+Tab.
+@item \0
+Empty string.
+@item \b
+Backspace.
+This is a GNU extension.
+@item \f
+Form feed.
+This is a GNU extension.
+@item \r
+Carriage return.
+This is a GNU extension.
+@item \v
+Vetical tab.
+This is a GNU extension.
+@end table
+
 @optZeroTerminated{paste}
 
 @end table

Collin

Reply via email to