diff --git a/t.sh b/t.sh index ebcc89d..304e11d 100755 --- a/t.sh +++ b/t.sh @@ -166,7 +166,7 @@ function loadids() { profile "start" # check for duplicate id mappings - sort -o $f -t: -k1,1 --stable --unique "$idfile" + sort -o $idfile -t: -k1,1 --stable --unique "$idfile" profile "finished removing dupes" max=0 @@ -1174,13 +1174,14 @@ EOF2 } function nextline() { - local dummy morestring + local dummy morestring rv=0 morestring="<------ more ------>" printed=$((printed + 1)); if [[ $USEPAGER -eq 1 ]]; then if [[ $printed -ge $((rows - 2)) ]]; then echo -en "${CYAN}${morestring}${PLAIN}" read -n1 -s dummy + [[ $dummy == "q" ]] && { echo; exit 0; } printf "\r%*s\r" ${#morestring} printed=0 needtitle=1