bash syntax bug