$ $SHELL --version GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc. $ function cd () { builtin cd $@ && echo $PWD; } $ type cd cd is a function cd () { builtin cd $@ && echo $PWD } $ type pwd pwd is a shell builtin $ cd / / $ pwd / $ cd bin /bin $ pwd /bin $ cd / / $ pwd / $