bug-bash
[Top][All Lists]
Advanced

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

Re: Infinite loop in bash glob matching


From: Zoltán Herczeg
Subject: Re: Infinite loop in bash glob matching
Date: Thu, 18 May 2017 08:29:13 +0200 (CEST)

>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 you for the explanation.

I think throwing an error would be better than an undefined behaviour. Bash 
throws error for solo parenthesis, a similar technique could be used here.

Regards,
Zoltan




reply via email to

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