$'' is POSIX standard syntax as of POSIX.1-2024, as per: https://www.austingroupbugs.net/view.php?id=249
* doc/coreutils.texi (quotingStyles): Remove 'proposed'. * src/printf.c: Likewwise. Reported at https://bugs.debian.org/1074776 --- doc/coreutils.texi | 4 ++-- src/printf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index c561ac755..a23977910 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8706,7 +8706,7 @@ like @command{csh}. Quote strings for the shell, even if they would normally not require quoting. @item shell-escape Like @samp{shell}, but also quoting non-printable characters using the POSIX -proposed @samp{$''} syntax suitable for most shells. +@samp{$''} syntax suitable for most shells. @item shell-escape-always Like @samp{shell-escape}, but quote strings even if they would normally not require quoting. @@ -13446,7 +13446,7 @@ from the converted string. @kindex %q An additional directive @samp{%q}, prints its argument string in a format that can be reused as input by most shells. -Non-printable characters are escaped with the POSIX proposed @samp{$''} syntax, +Non-printable characters are escaped with the POSIX @samp{$''} syntax, and shell metacharacters are quoted appropriately. This is an equivalent format to @command{ls --quoting=shell-escape} output. diff --git a/src/printf.c b/src/printf.c index 44bb1d314..7ac7a76ce 100644 --- a/src/printf.c +++ b/src/printf.c @@ -42,7 +42,7 @@ except that octal escapes are of the form \0 or \0ooo. %q = print an argument string in a format that can be - reused as shell input. Escaped characters used the proposed + reused as shell input. Escaped characters used the POSIX $'' syntax supported by most shells. The 'format' argument is re-used as many times as necessary @@ -126,7 +126,7 @@ FORMAT controls the output as in C printf. Interpreted sequences are:\n\ %b ARGUMENT as a string with '\\' escapes interpreted,\n\ except that octal escapes are of the form \\0 or \\0NNN\n\ %q ARGUMENT is printed in a format that can be reused as shell input,\n\ - escaping non-printable characters with the proposed POSIX $'' syntax.\ + escaping non-printable characters with the POSIX $'' syntax.\ \n\n\ and all C format specifications ending with one of diouxXfeEgGcs, with\n\ ARGUMENTs converted to proper type first. Variable widths are handled.\n\ -- 2.45.1