[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite loop in bash glob matching
From: |
Greg Wooledge |
Subject: |
Re: Infinite loop in bash glob matching |
Date: |
Thu, 18 May 2017 08:00:41 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Thu, May 18, 2017 at 08:29:13AM +0200, Zoltán Herczeg wrote:
> 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.
That's not really an option, because an unmatched [ isn't a syntax
error. It's just a string.
imadev:~$ echo [
[
Generating an error for this would break backward compatibility.
- Infinite loop in bash glob matching, Zoltán Herczeg, 2017/05/16
- Re: Infinite loop in bash glob matching, Eduardo Bustamante, 2017/05/16
- Re: Infinite loop in bash glob matching, Daniel Mills, 2017/05/16
- Re: Infinite loop in bash glob matching, Zoltán Herczeg, 2017/05/16
- Re: Infinite loop in bash glob matching, Eduardo Bustamante, 2017/05/17
- Re: Infinite loop in bash glob matching, Chet Ramey, 2017/05/17
- Re: Infinite loop in bash glob matching, Zoltán Herczeg, 2017/05/18
- Re: Infinite loop in bash glob matching,
Greg Wooledge <=
- Re: Infinite loop in bash glob matching, Chet Ramey, 2017/05/18