For example, `g_parent=${my_path:a:h:h:h}` to get `$my_path` as an absolute dir, and go up three directories.