From 9a3212a2dea813581347efd58810bc16d371cda7 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 1 Dec 2022 18:50:51 -0500 Subject: predictor: make strictly posix compliant --- sb_predictor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sb_predictor.sh') diff --git a/sb_predictor.sh b/sb_predictor.sh index 6059ce0..1cae0dd 100755 --- a/sb_predictor.sh +++ b/sb_predictor.sh @@ -31,7 +31,7 @@ typeSomehow(){ IFS='' while read -r word; do if test -e "$complete"; then - test -n "${word:1}" && wl-ime-type -- "${word:1}" + test -n "${word#?}" && wl-ime-type -- "${word#?}" else wl-ime-type -- "$word" fi @@ -40,7 +40,7 @@ typeSomehow(){ cat 0<> "$sock"|suggpicker 2>/dev/null|saveWord | typeSomehow & IFS='' while read -r swipe; do - if test -n "${swipe:1}"; then + if test -n "${swipe#?}"; then touch "$complete" # TODO: change words echo "$swipe" | swipeGuess "$words" 5 >> "$sock" -- cgit 1.4.1