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: asan report in bash_add_history

2023-03-14 Thread Chet Ramey
On 3/7/23 11:56 AM, Grisha Levit wrote: ./bash --norc -in <<<$'\\\n.' bashhist.c:899:8: runtime error: addition of unsigned offset to 0x00010700d190 overflowed to 0x00010700d18f Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

Re: asan report in spname

2023-03-14 Thread Chet Ramey
On 3/7/23 12:12 PM, Grisha Levit wrote: happens when attempting spell-correct-word on an empty line ./bash --norc -in <<<$'\030s' Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech,

Re: asan report+fix in sh_mkdoublequoted

2023-03-14 Thread Chet Ramey
On 3/7/23 1:05 PM, Grisha Levit wrote: mkdir -p /tmp/bin '/tmp/bin/$' chmod +x '/tmp/bin/$' PATH=/tmp/bin ./bash --norc -in <<<$'\e*' Thanks for the report and fix. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet R