[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: less displays help when invoked on an empty file



I'm not sure you can call it a bug, (maybe it's a feature ;) ) because it 
is a well-known behavior of less (and some other pagers from what I have 
heard) that they don't work well with files of length 0.  This is mostly 
seen that you can't less any of the files on the proc filesystem because 
they don't really exist, but you can more them, because more dosen't show 
the previously mentioned behavior.

Hope this helps,

Shaya
--
Shaya Potter
spotter@itd.nrl.navy.mil



On Wed, 18 Sep 1996, Christian Schwarz wrote:

> 
> Hi!
> 
> The subject says everything: When I less an empty file (length 0), it
> comes up with the help screen. I'm using less_321-1 and call less without
> any command line options or any env variables.
> 
> Does someone has a hint how to avoid this? Is this a less or a Debian bug
> or did I make a mistake?
> 
> 
> Cheers,
> 
> Chris
> 
> --          _,,     Christian Schwarz
>            / o \__   schwarz@monet.m.isar.de, schwarz@debian.org,
>            !   ___;   schwarz@informatik.tu-muenchen.de, bm955877@muenchen.org
>            \  /        
>   \\\______/  !        PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
>    \          /         http://www.informatik.tu-muenchen.de/~schwarz/
> -.-.,---,-,-..---,-,-.,----.-.-
>   "DIE ENTE BLEIBT DRAUSSEN!"
> 
> 



Reply to: