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.