[Bug 247791] sh(1) incorrectly states that, in PS1, '\$' expands with a trailing space

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 5 21:01:22 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247791

            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 at FreeBSD.org
          Reporter: kd-dev at pm.me
                CC: doc at FreeBSD.org

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

The description of the "\$" sequence for PS1 does not match the implementation.

>From the man-page:
> \$      Superuser status.  “$ ” for normal users and “# ”
>         for superusers.

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

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

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


More information about the freebsd-doc mailing list