"Marcel M. Cary" <marcel@xxxxxxxxxxxxxxxx> writes: > If cd_to_toplevel had concatenated $(/bin/pwd) with $cdup to > avoid the separate "cd", it would require checking for $cdup > being an absolute path. I wasn't sure how to check that in > a way that is both portable and clearly faster than "cd", case "$v" in /*) : handle absolute path ;; *) : everything else ;; esac In all shells that support "case..esac", it is built-in. Having said that, I think it would probably be better to bite the bullet and start using "cd -P" soon after 1.6.1 goes final, and at the same time existing places that use "cd `pwd`" as a workaround if there are some. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html