commit 61dbf5e8dac05544cf4189a465f5afeea3bd965d from: Paul W. Rankin date: Sat Oct 05 04:33:14 2024 UTC t_done.sh: avoid "antiquated" use of expr for arithmetic commit - 02e4bf341bc5c1f05a0b057af278eed752b8d24b commit + 61dbf5e8dac05544cf4189a465f5afeea3bd965d blob - 0ce5e4094e314a9a2e6f2ea3166891d494df033e blob + 0df56a1165df5eeab1923ac0bc570da6ad0bfaa9 --- t_done.sh +++ t_done.sh @@ -123,7 +123,7 @@ t_print() { # t_select(number|regex) # returns: selected todos t_select() { - if expr "$1" + 0 > /dev/null 2>&1; then + if [ $(( $1 + 0 )) -gt 0 ]; then sed -n "$1p" else casematch=