Module Name: src
Committed By: uwe
Date: Fri Mar 16 23:56:13 UTC 2018
Modified Files:
src/bin/sh: sh.1
Log Message:
Default values of PS1 and friends have only single space. Use .Li to
typeset them to make that space more visible in PostScript output.
To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 src/bin/sh/sh.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/sh.1
diff -u src/bin/sh/sh.1:1.197 src/bin/sh/sh.1:1.198
--- src/bin/sh/sh.1:1.197 Fri Mar 16 23:36:13 2018
+++ src/bin/sh/sh.1 Fri Mar 16 23:56:13 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: sh.1,v 1.197 2018/03/16 23:36:13 uwe Exp $
+.\" $NetBSD: sh.1,v 1.198 2018/03/16 23:56:13 uwe Exp $
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -466,7 +466,7 @@ is also performed upon
but not the converse.
.It Fl x Em xtrace
Write each command to standard error (preceded by the expanded value of
-.Dq $PS4 )
+.Li $PS4 )
before it is executed.
Unless
.Fl X
@@ -3902,9 +3902,9 @@ This value is set at shell startup, igno
any value in the environment, and then made readonly.
.It Ev PS1
The primary prompt string, which defaults to
-.Dq $ \ ,
+.Dq Li "$ " ,
unless you are the superuser, in which case it defaults to
-.Dq # \ .
+.Dq Li "# " .
This string is subject to parameter, arithmetic, and if
enabled by setting the
.Ic promptcmds
@@ -3922,7 +3922,7 @@ For other expansion errors, a message wi
and the unexpanded string will then be used as the prompt.
.It Ev PS2
The secondary prompt string, which defaults to
-.Dq > \ .
+.Dq Li "> " .
After expansion (as for
.Ev PS1 )
it is written whenever more input is required to complete the
@@ -3935,7 +3935,7 @@ before each line when execution trace
is enabled.
.Ev PS4
defaults to
-.Dq + \ .
+.Dq Li "+ " .
.It Ev PSc
Initialized by the shell, ignoring any value from the environment,
to a single character string, either