Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
commit9aa02fc93e1dba83d3e60909d42943a60f9e47cf
authorpavalos <pavalos>
Fri, 5 Jan 2007 22:18:52 +0000 (5 22:18 +0000)
committerpavalos <pavalos>
Fri, 5 Jan 2007 22:18:52 +0000 (5 22:18 +0000)
tree112b49bf4c6093942c3bd2f0c7c5d813bac05215
parent1e053a2099c0d4cbfe83b88aa768e0998fca7f3e
Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
.//dir as /dir.  Rather strip it only for the purpose of checking if the
directory path should be printed.

Obtained-from:  FreeBSD
bin/sh/cd.c