Bernd Eggink wrote: > I'm still having problems with the cd builtin. In bash 3, the commands > > cd > cd "" > > both changed to the user's home directory. In bash 4 (with patch > "save-current-token" applied) > > cd "" > > does nothing. Bug or feature?
I get the same behavior from bash-3.2.48 and bash-4.0: canonicalizing "" (since it's not an absolute pathname) results in $PWD, and the cd has no effect. If you run cd -P "" to avoid canonicalization, you get an error. Make sure you're running `builtin cd' when you test to avoid the effect of any function you've defined. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/