Re: [Fish-users] a builtin AND a function?

2017-10-23 Thread Diego Zamboni
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

[Fish-users] a builtin AND a function?

2017-10-23 Thread Mark Volkmann
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