From 27e7ce4b3e422bfd69e71cae37b49875c76679b7 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 31 May 2020 08:47:46 -0500 Subject: Log, don't echo --- bollux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bollux b/bollux index 93874c1..177504e 100755 --- a/bollux +++ b/bollux @@ -251,7 +251,7 @@ remove_dot_segments() { # 5.2.4 elif [[ "$input" == . || "$input" == .. ]]; then input= else - [[ $input =~ ^(/?[^/]*)(/?.*)$ ]] || echo NOMATCH >&2 + [[ $input =~ ^(/?[^/]*)(/?.*)$ ]] || log debug NOMATCH output="$output${BASH_REMATCH[1]}" input="${BASH_REMATCH[2]}" fi @@ -416,7 +416,7 @@ mklesskey() { } normalize_crlf() { - shopt -s extglob + shopt -s extglob while IFS= read -r; do printf '%s\n' "${REPLY//$'\r'?($'\n')/}" done -- cgit 1.4.1-21-gabe81