Re: segfault on initial word completion

2023-04-28 Thread Chet Ramey
On 4/21/23 1:15 PM, Grisha Levit wrote: One more issue after the fix, the start can end up being further than pcomp_ind Thanks for the follow up. We have to distinguish between lines with only whitespace following any assignment statements and other non-empty lines. Chet -- ``The lyf so shor

Re: segfault on initial word completion

2023-04-21 Thread Grisha Levit
On Wed, Apr 19, 2023, 10:23 Chet Ramey wrote: > On 4/18/23 6:15 PM, Grisha Levit wrote: > > $ bash --rcfile <(echo 'complete -C: -I') -i <<<$'; \cA\t' > > bash-5.2$ bash: xmalloc: cannot allocate 18446744073709551615 bytes > > $ bash --rcfile <(echo 'complete -C: -I') -i <<<$';\cA \t' > > bash-5.

Re: segfault on initial word completion

2023-04-19 Thread Chet Ramey
On 4/18/23 6:15 PM, Grisha Levit wrote: $ bash --rcfile <(echo 'complete -C: -I') -i <<<$'; \cA\t' bash-5.2$ bash: xmalloc: cannot allocate 18446744073709551615 bytes $ bash --rcfile <(echo 'complete -C: -I') -i <<<$';\cA \t' bash-5.2$ Segmentation fault: 11 Thanks for the report. -- ``The l

segfault on initial word completion

2023-04-18 Thread Grisha Levit
$ bash --rcfile <(echo 'complete -C: -I') -i <<<$'; \cA\t' bash-5.2$ bash: xmalloc: cannot allocate 18446744073709551615 bytes $ bash --rcfile <(echo 'complete -C: -I') -i <<<$';\cA \t' bash-5.2$ Segmentation fault: 11