On Sat, Aug 01, 2020 at 06:08:42PM +0200, Christian wrote:
> Hi altogether,
>
> I was going to use the *history* command and accidentally typed just
> "history" (without any options or sub-commands).
> I got the full history of my fish-commands.
>
> However "help" gave me just these command variations:
>
> /Synopsis//
> //
> //history search [ --show-time ] [ --case-sensitive ] [ --exact |
> --prefix | --contains ] [ --max=n ] [ --null ] [ "search string"... ]//
> //history delete [ --show-time ] [ --case-sensitive ] [ --exact |
> --prefix | --contains ] "search string"...//
> //history merge//
> //history save//
> //history clear//
> //history ( -h | --help ) # /
>
> No mention of the usage of just typing "history". Or might the last
> entry _/history ( -h | --help)/_ be interpreted as to be used without
> any parameters as well?
>
> So basically my question is: is it legitimate to just run "history"
> without any parameters? Because it seems to work.
>
> Thanks a lot in advance.
>
> Greetings.
> Rosika
The help for the "search" subcommand says
This is the default operation if no other operation is specified.
You're doing a search with no search string! I'll change the synopsis to use
"history [ search ] ... " so it's clear that this is optional.
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users