bug-bash
[Top][All Lists]
Advanced

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

Infinite loop in bash glob matching


From: Zoltán Herczeg
Subject: Infinite loop in bash glob matching
Date: Tue, 16 May 2017 09:48:14 +0200 (CEST)

Hi,

bash enter an infinite loop for this glob:

ls @(@()).

I have been trying to create a bash glob regex converter. It would be great if 
somebody (privately) could explain me  how !() and invalid [] expressions 
exactly work. I have questions such as:

ls a[[:alpha:][:abm]

Why does this match to a: and nothing else (e.g. am or a[mm )?

Regards,
Zoltan




reply via email to

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