Fix bug where "-t;" file was written to cwd.
Pressing 'q' at pager prompt will now quit.
This commit is contained in:
parent
4aa14b73b2
commit
4752528d48
5
t.sh
5
t.sh
|
@ -166,7 +166,7 @@ function loadids() {
|
||||||
profile "start"
|
profile "start"
|
||||||
|
|
||||||
# check for duplicate id mappings
|
# 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"
|
profile "finished removing dupes"
|
||||||
|
|
||||||
max=0
|
max=0
|
||||||
|
@ -1174,13 +1174,14 @@ EOF2
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextline() {
|
function nextline() {
|
||||||
local dummy morestring
|
local dummy morestring rv=0
|
||||||
morestring="<------ more ------>"
|
morestring="<------ more ------>"
|
||||||
printed=$((printed + 1));
|
printed=$((printed + 1));
|
||||||
if [[ $USEPAGER -eq 1 ]]; then
|
if [[ $USEPAGER -eq 1 ]]; then
|
||||||
if [[ $printed -ge $((rows - 2)) ]]; then
|
if [[ $printed -ge $((rows - 2)) ]]; then
|
||||||
echo -en "${CYAN}${morestring}${PLAIN}"
|
echo -en "${CYAN}${morestring}${PLAIN}"
|
||||||
read -n1 -s dummy
|
read -n1 -s dummy
|
||||||
|
[[ $dummy == "q" ]] && { echo; exit 0; }
|
||||||
printf "\r%*s\r" ${#morestring}
|
printf "\r%*s\r" ${#morestring}
|
||||||
printed=0
|
printed=0
|
||||||
needtitle=1
|
needtitle=1
|
||||||
|
|
Loading…
Reference in New Issue