Package: less
Version: 456-1
Severity: normal

The command

  echo | less '-mPmfoo\.bar'

gives the prompt "foobar" instead of "foo.bar". To get the period, the
backslash needs to be doubled, but this is not what the less man page
says:

  Any  characters  other  than  the special ones (question mark, colon,
  period, percent, and backslash) become literally part of the  prompt.
  Any of the special characters may be included in the prompt literally
  by preceding it with a backslash.

As there is no reason to double the backslash, I suppose that it is a
bug in the program, not in the documentation.

Note that this bug affects "man". For instance, "man apt.conf" gives
the following prompt:

 Manual page aptconf(5) line 1 (press h for help or q to quit)

where the period is missing.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages less depends on:
ii  debianutils  4.3.4
ii  libc6        2.13-37
ii  libtinfo5    5.9-10

less recommends no packages.

less suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to