Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jul 2020 21:01:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 247791] sh(1) incorrectly states that, in PS1, '\$' expands with a trailing space
Message-ID:  <bug-247791-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247791

            Bug ID: 247791
           Summary: sh(1) incorrectly states that, in PS1, '\$' expands
                    with a trailing space
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: kd-dev@pm.me
                CC: doc@FreeBSD.org

Created attachment 216235
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216235&action=
=3Dedit
Remove excess spaces.

The description of the "\$" sequence for PS1 does not match the implementat=
ion.

>From the man-page:
> \$      Superuser status.  =E2=80=9C$ =E2=80=9D for normal users and =E2=
=80=9C# =E2=80=9D
>         for superusers.

In use:
$ PS1=3D'\$'
$PS1=3D'\$ '
$ ...

Patch:
The attached patch removes the extra spaces from the man-page.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247791-9>