coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: paste -d: test supported escape sequences


From: Collin Funk
Subject: Re: [PATCH] tests: paste -d: test supported escape sequences
Date: Sun, 11 Jan 2026 19:55:48 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

PƔdraig Brady <P@draigBrady.com> 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

[Prev in Thread] Current Thread [Next in Thread]