Re: [Fish-users] a builtin AND a function?
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 Volkmannwrote: > 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
Re: [Fish-users] expr command
Mark, Good question. expr is a system command, so it's documented through the usual routes: https://linux.die.net/man/1/expr Robert > On Oct 23, 2017, at 07:50, Mark Volkmannwrote: > > What is the reason why the expr command is not documentation along with other > fish commands at https://fishshell.com/docs/current/commands.html. Is it > considered to be in a different category of commands from those? > > -- > 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
[Fish-users] a builtin AND a function?
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
[Fish-users] expr command
What is the reason why the expr command is not documentation along with other fish commands at https://fishshell.com/docs/current/commands.html. Is it considered to be in a different category of commands from those? -- 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