trying to distinguish [-] and -. Still something wrong.. Maybe the commands after ] is not properly expanded.