Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
authorPeter Avalos <pavalos@dragonflybsd.org>
Fri, 5 Jan 2007 22:18:52 +0000 (22:18 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Fri, 5 Jan 2007 22:18:52 +0000 (22:18 +0000)
commit27be99cb1a6317f92689744ce8d2dc823213c888
treebfc4915c77f10a33f51500e7be1ffac277ac33df
parent6f7b98e081c59b0af2e4c3558c24bd00cd422419
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