Created attachment 216235 [details] 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.
Nice catch! Thanks!
A commit references this bug: Author: 0mp Date: Mon Jul 6 10:05:35 UTC 2020 New revision: 362957 URL: https://svnweb.freebsd.org/changeset/base/362957 Log: Fix description of the "\$" sequence for PS1 The manual page documents "\$" to expand to either "$" or "#" followed by a single space. In reality, the single space character is not appended. PR: 247791 Submitted by: kd-dev@pm.me MFC after: 7 days Changes: head/bin/sh/sh.1
A commit references this bug: Author: 0mp Date: Sun Jul 26 09:47:02 UTC 2020 New revision: 363544 URL: https://svnweb.freebsd.org/changeset/base/363544 Log: MFC 362957: Fix description of the "\$" sequence for PS1 The manual page documents "\$" to expand to either "$" or "#" followed by a single space. In reality, the single space character is not appended. PR: 247791 Submitted by: kd-dev@pm.me Changes: _U stable/12/ stable/12/bin/sh/sh.1