fix remove_bashism for minimalize intrusion