[ANNOUNCEMENT] Updated: less-581.2-1

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Sat Sep 18 18:01:27 GMT 2021


On 2021-05-02 04:04, Marco Atzeri wrote:
> New version 581.2-1 of
>    less
> is available in the Cygwin distribution

Running less +F <FILE> (follow ) or less +G <FILE> then F or less <FILE> 
then F does not seem to work (since at least v 530) on logs updated 
every second or so or longer, showing only the last line(s) when 
started, unlike tail -f or xtail:

Compare:

$ for ((i = 1; i < 10000000; ++i)); do
   echo $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i
   sleep 1
done > t & less +F t
[wait]
^C
G
q
$ kill %1

to:

$ for ((i = 1; i < 10000000; ++i)); do
   echo $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i
   sleep 1
done > t & tail -f t
...
^C
$ kill %1

or:

$ for ((i = 1; i < 10000000; ++i)); do
   echo $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i $i
   sleep 1
done > t & xtail t
...
^C
*** recently changed files ***
    1  2021-09-18 11:47:50  t
currently watching:  1 files  0 dirs  0 unknown entries
Exit (y/N)? y
$ kill %1

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]


More information about the Cygwin mailing list