Re: Infinite loop in bash glob matching

2017-05-17 Thread Zoltán Herczeg
>I read this as saying that it's a requirement on the application to ensure >that character classes are correctly formed, and it's unspecified behavior >if they're not. > >So you're right: people should not count on shells treating improperly- >formed character classes as literal characters. Thank

Re: Infinite loop in bash glob matching

2017-05-17 Thread Chet Ramey
On 5/17/17 10:52 AM, Eduardo Bustamante wrote: > Then in "9.3.5 RE Bracket Expression" > (http://pubs.opengroup.org/onlinepubs/9699919799.2008edition/basedefs/V1_chap09.html#tag_09_03_05), > > The character sequences "[." , "[=" , and "[:" ( > followed by a , , or ) shall be special insi

Re: Infinite loop in bash glob matching

2017-05-17 Thread Eduardo Bustamante
On Tue, May 16, 2017 at 2:36 PM, Zoltán Herczeg wrote: [...] > bash version: GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) > This command hangs in any directory on my machine (I don't have a directory > without a dot file): > > ls @(@()). Yeah, I can reproduce the problem with bash 4