Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:

The documentation for here strings says:

"The WORD undergoes tilde expansion, parameter and variable expansion,
command substitution, arithmetic expansion, and quote removal.  Filename
expansion and word splitting are not performed."

It is missing brace expansion, which is not supported:

$ cat <<< a{b,c}d
a{b,c}d
b$ cat <<< {1..3}
{1..3}

Fix:
diff --git a/doc/bashref.texi b/doc/bashref.texi
index b0dc2fad..97d2e15a 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -3191,7 +3191,7 @@ A variant of here documents, the format is:
 The @var{word} undergoes
 tilde expansion, parameter and variable expansion,
 command substitution, arithmetic expansion, and quote removal.
-Filename expansion and word splitting are not performed.
+Brace expansion, filename expansion, and word splitting are not performed.
 The result is supplied as a single string,
 with a newline appended,
 to the command on its
-- 
Alex.

Reply via email to