Mark,
cd is a builtin, but the default fish installation comes with a function
called cd (which overshadows the builtin) which wraps the builtin and adds
some functionality such as recognizing "-" to mean "previous directory",
keeping the directory history, etc. You can see its definition by
Entering "builtin -n" lists all the builtins. This list includes "cd".
Entering "type -t cd" says that cd is a function.
How can cd be both a builtin and a function?
--
R. Mark Volkmann
Object Computing, Inc.
--
Check