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 typing
"functions cd".

--Diego


On Mon, Oct 23, 2017 at 5:10 PM, Mark Volkmann <r.mark.volkm...@gmail.com>
wrote:

> 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 out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to