shell remove trailing semicolons