[Top][All Lists]

[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/

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.

reply via email to

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