On Fri, Oct 28, 2022 at 03:44:34PM +0900, Hyunho Cho wrote:
> # this is just for testing purposes.
> $ foo=$( gcc -v --help 2> /dev/null | sed -En 's/^\s*(-[^ ]+).*/\1/p' )

The last time this issue was reported, we mentioned that "gcc --help"
is not a standard document that appears the same on everyone's systems.

I'm not disputing that bash has performance issues here, but in the
interests of getting a coherent bug report (or feature request), please
use input that's available to everyone.

At the very least, show us the output of "gcc -v --help 2>/dev/null | wc"
on your system, so we have a ballpark estimate of the size of the input
and the number of words in it.

On my system, as an example:

unicorn:~$ gcc -v --help 2>/dev/null | wc
   3867   22464  250924
unicorn:~$ gcc --help 2>/dev/null | wc
     61     430    3995

Reply via email to