mless: when output is not a tty, just call mseq

pull/1/merge
Christian Neukirchen 8 years ago
parent 2c2be8bd37
commit cef55b231d

@ -22,6 +22,10 @@ if [ "$#" -eq 0 ] && ! [ -t 0 ]; then
set -- :
fi
if ! [ -t 1 ]; then
exec mseq "$@"
fi
curcmd=$(mseq -n "$@" |
awk -v cur=$(mseq -n .) '$1 == cur {print "+" FNR ":x"; quit}')

Loading…
Cancel
Save