Re: Document that here strings don't support brace expansion.

2023-03-15 Thread Dale R. Worley
Chet Ramey writes: > If they're linked, why wouldn't saying filename generation isn't performed > be enough to imply that brace expansion isn't performed either? Hmm, yes, good point. Dale

Re: Document that here strings don't support brace expansion.

2023-03-15 Thread Chet Ramey
On 3/15/23 12:52 AM, Alex Bochannek wrote: Chet, Thank you for the thoughtful responses. My thoughts below got a bit long, so here is a summary: - The here-string documentation should either spell out that brace expansion is not performed or simple only list the expansions that are. The

Re: Document that here strings don't support brace expansion.

2023-03-15 Thread alex xmb ratchev
On Wed, Mar 15, 2023, 8:07 AM Robert Elz wrote: > While it is probably useful to have every place where expansions occur list > which ones apply, perhaps it would (also) be useful to include the general > principle which controls all of this. > > That is, expansions are performed, late (just as c

Re: Document that here strings don't support brace expansion.

2023-03-15 Thread Robert Elz
While it is probably useful to have every place where expansions occur list which ones apply, perhaps it would (also) be useful to include the general principle which controls all of this. That is, expansions are performed, late (just as commands are about to be run, after all parsing has finished

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Martin D Kealey
I suggest avoiding enumerating exclusions (including removing any existing ones), and adding an explanation that "expansions that can produce multiple words are excluded". On Wed, 15 Mar 2023, 15:52 Alex Bochannek, wrote: > Chet, > > Thank you for the thoughtful responses. My thoughts below got

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Alex Bochannek
Chet, Thank you for the thoughtful responses. My thoughts below got a bit long, so here is a summary: - The here-string documentation should either spell out that brace expansion is not performed or simple only list the expansions that are. - The same goes for the documentation for the shell-

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread alex xmb ratchev
On Tue, Mar 14, 2023, 7:04 PM Chet Ramey wrote: > On 3/14/23 11:23 AM, Dale R. Worley wrote: > > Alex Bochannek writes: > >> "The WORD undergoes tilde expansion, parameter and variable expansion, > >> command substitution, arithmetic expansion, and quote removal. Filename > >> expansion and wor

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Chet Ramey
On 3/14/23 11:23 AM, Dale R. Worley wrote: Alex Bochannek writes: "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, whic

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Dale R. Worley
Alex Bochannek writes: > "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: Interesting ...

Re: Document that here strings don't support brace expansion.

2023-03-14 Thread Chet Ramey
On 3/13/23 7:06 PM, Alex Bochannek wrote: I also noticed that there doesn't seem to be an easy way to expand braces with Readline, which I suspect may have to do with where in the parsing process of Bash brace expansion actually happens. Readline is fairly application-agnostic. There is a mec

Re: Document that here strings don't support brace expansion.

2023-03-13 Thread Alex Bochannek
Chet Ramey writes: > On 3/11/23 3:39 AM, Alex Bochannek wrote: >> 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, arith

Re: Document that here strings don't support brace expansion.

2023-03-13 Thread Chet Ramey
On 3/11/23 3:39 AM, Alex Bochannek wrote: 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. Filen

Document that here strings don't support brace expansion.

2023-03-11 Thread Alex Bochannek
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 per