tldr-python-client icon indicating copy to clipboard operation
tldr-python-client copied to clipboard

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

Open markfaine opened this issue 1 month ago • 2 comments

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
}

markfaine avatar Nov 21 '25 23:11 markfaine