Each time a dir/.. match is found, variable expansion with substitution is used to remove the matched part of the path. Regular expressions were introduced in bash 3.0. Bash 3.2 changed regular ...