fix infinite loop with shellslash