bash string terminated with slash? Edit Delete bash sh slash substitution terminated variable variables [ "/" = "${str: -1}" ]