make [ a whitespace character in scripts (Fixes #2126)