Fix change of format affecting -l and -a

This commit is contained in:
gitlab.com/pepa65 2020-10-31 19:49:46 +07:00
parent d66529837d
commit 4250019f23
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# tldr-bash-client
* version 0.45
* version 0.46
### Bash client for tldr: community driven man-by-example
**A fully-functional [bash](https://tiswww.case.edu/php/chet/bash/bashtop.html)

5
tldr
View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set +vx -o pipefail
[[ $- = *i* ]] && echo "Don't source this script!" && return 1
version='0.45'
version='0.46'
# tldr-bash-client version 0.44
# Bash client for tldr: community driven man-by-example
# - forked from Ray Lee, https://github.com/raylee/tldr
@ -371,7 +371,8 @@ List_pages(){
pregex=common ptext="platform not detected, ${I}common$XI"
fi
Inf "Known tldr pages from $ptext:"
Out "$(tr '{' '\n' <"$index" |grep $pregex |cut -d "$Q" -f4 |column)"
Out "$(tr '{' '\n' <"$index" |grep '^"name"' |grep $pregex |
cut -d "$Q" -f4 |column)"
exit "$1"
}