Package: dash
Version: 0.5.5.1-7.4
Severity: minor
File: /usr/share/man/man1/dash.1.gz

LANG=C man dash shows:

     PS1        The primary prompt string, which defaults to ``$  '', unless
                you are the superuser, in which case it defaults to ``#  ''.

     PS2        The secondary prompt string, which defaults to ``>  ''.

     PS4        Output before each line when execution trace (set -x) is
                enabled, defaults to ``+  ''.

Each of the documented default values has a graphic character and
two spaces between the quotation marks.  However, the actual
default values have only one space, rather than two.

LANG=fi_FI.UTF-8 man dash shows the same spaces as LANG=C,
although the surrounding quotation marks are different.

The source code of the man page goes like this:

.It Ev PS1
The primary prompt string, which defaults to
.Dq $ \  ,
unless you are the superuser, in which case it defaults to
.Dq # \  .

Apparently, the Dq macro outputs a space between the first
parameter (the dollar sign) and the second parameter (a space).
I tried merging those parameters, like this:

.It Ev PS1
The primary prompt string, which defaults to
.Dq $\  ,
unless you are the superuser, in which case it defaults to
.Dq #\  .

and that fixed the bug for PS1.  The manual page already uses
similar syntax in the documentation of set -x, so this change
should not cause portability problems.

-- System Information:
Debian Release: 6.0.1
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages dash depends on:
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  dpkg                          1.15.8.10  Debian package management system
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

dash recommends no packages.

dash suggests no packages.

Versions of manual-page viewers:
ii  groff                         1.20.1-10  GNU troff text-formatting system
ii  groff-base                    1.20.1-10  GNU troff text-formatting system (
ii  man-db                        2.5.7-8    on-line manual pager
ii  x11-apps                      7.5+5      X applications

-- debconf information:
* dash/sh: true

Attachment: pgp5OVETWiAA9.pgp
Description: PGP signature

Reply via email to