bbl

Read, search and index the Bible on the command line -- Greek, Latin, KJV, Knox, RSV, and more
git clone git://git.wilsonrgheen.com/bbl
Log | Files | Refs | README | LICENSE

commit 1497a21e6abbb1dc20a26b499fe4c44934d76097
parent 590ecb113b06e43d8ce34ae962d697094c19f4e9
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Sun, 29 May 2022 14:14:08 -0500

fix issue where outputting to a non-terminal can bleed ANSI escape chars

Diffstat:
Mbbl.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bbl.sh b/bbl.sh @@ -16,7 +16,10 @@ list_readings() { exit 0 } -if [ -z "$PAGER" ]; then +if [ ! -t 1 ]; then + # If output is not a terminal, prevent the default behavior of opening the data in the pager only to send it down the pipeline + PAGER="cat" +elif [ -z "$PAGER" ]; then if command -v less >/dev/null; then PAGER="less" else