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

--Diego


On Mon, Oct 23, 2017 at 5:10 PM, Mark Volkmann 
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


Re: [Fish-users] expr command

2017-10-23 Thread Robert Carpenter
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 Volkmann  wrote:
> 
> 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?

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 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

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