bug-bash
[Top][All Lists]
Advanced

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

Document that here strings don't support brace expansion.


From: Alex Bochannek
Subject: Document that here strings don't support brace expansion.
Date: Sat, 11 Mar 2023 00:39:36 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

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

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