[Top][All Lists]

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

Re: Infinite loop triggered by extglob +(!(x))y

From: Greg Wooledge
Subject: Re: Infinite loop triggered by extglob +(!(x))y
Date: Sun, 25 Jul 2021 13:31:00 -0400

On Sun, Jul 25, 2021 at 07:09:50PM +0200, andrej--- via Bug reports for the GNU 
Bourne Again SHell wrote:
> Description:
>       An extglob like +(!(x))y causes Bash to freeze with a 100% CPU 
> utilization.
>       At the first glance the freeze doesn't seem to depend on the 
> (non-)existence of matching paths.

The files do seem to matter.

unicorn:~/tmp$ echo +(!(x))y
unicorn:~/tmp$ cd /tmp
unicorn:/tmp$ echo +(!(x))y

It's a really bad runaway, requiring SIGKILL from another terminal to
stop it.

reply via email to

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