Package: less
Version: 394-1

Hi,

1. The manpages for less and lesskey are not in sync.  lesskey mentions 
$HOME/.lesskey, while less mentions $HOME/.less.

~/.less seems correct (peeking at both binaries with Emacs).
http://www.sourcentral.org/man/debian-unstable/1+less
http://www.sourcentral.org/man/debian-unstable/1+lesskey

2. The manpage for less is not very understandable to the casual user w.r.t. 
the location of the system-wide lesskey file. It mentions 
/usr/local/etc/sysless and a sysconf directory.  The user not used to building 
packages him/herself won't know that this translates to /etc/sysless.

Possibly the Debian manpage could be more explicit.

3. Possibly Debian should switch the system wide conf file to /etc/default/xyz
(and then mention this Debian-specific location in the manpage).

4. Creating a .less file results in
Cannot use lesskey file "/home/hoehle/.less" message
touch ~/.less
Rename it to .lesskey and it gets ignored.

Invoking
$ cp -p .less .lesskey
$ less -k ~/.lesskey Bugs.txt
produces
Cannot use lesskey file "/home/hoehle/.less"
Cannot use lesskey file "/home/hoehle/.lesskey"
(Press RETURN)

Afterwards, hitting return once returns to the prompt but produces garbage on 
the last line of my Gnome-terminal: URN) is left displayed in front of the 
prompt (if you have a short prompt).

The prompt then always appears on the bottommost line of the tty, even when 
started via
$ clear
$ less -k ~/.lesskey .bashrc
This is unusual. Normally less restores the tty completely, and the prompt is 
one line below the previous command line.

Here's a snapshot:
[last commands were: $ PS1='\u$ '; clear; ]
hoehle $ less -k ~/.lesskey .bashrc



~20 empty lines...




hoehle$ (press RETURN) -- in inverse video

I tried to create a .less file according to the syntax describe in man lesskey, 
but I always got the above error.

I went to http://www.greenwoodsoftware.com/less but found no mention of these 
bugs.

Regards,
        Jörg Höhle.

Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-27-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

As you can see, I'm running Ubuntu Debian. To me, an Ubuntu system is
a kind of Debian system, and I prefer to submit bugs that I'm sure
affect both upstream directly, instead of going through a heavy
hierarchy.

Reply via email to