Skip to content

tldr --search foo should retrurn 1 when nothing is found #318

@markfaine

Description

@markfaine

For example:

tldr --search e2scruball
No commands matched your search term.
echo $?
0

This should return 1 since nothing was found, then this would work as intended:

function man(){
  if tldr --search "$1" &>/dev/null; then tldr "$1"; else /usr/bin/man "$1"; fi
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions