summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2006-06-15 07:00:49 +0000
committerstefanf <stefanf@FreeBSD.org>2006-06-15 07:00:49 +0000
commit40616c7bb389aaa1e23907cad897503212b8e51e (patch)
treeffddd6afca1624ba622d55a632b321308ad597fc /bin/sh/sh.1
parent1689a257a3225150b95ea8241663b4784ac60e9f (diff)
downloadFreeBSD-src-40616c7bb389aaa1e23907cad897503212b8e51e.zip
FreeBSD-src-40616c7bb389aaa1e23907cad897503212b8e51e.tar.gz
Implement the PS4 variable which is defined by the POSIX User Portability
Utilities option. Its value is printed at the beginning of the line if tracing (-x) is active. PS4 defaults to the string "+ " which is compatible with the old behaviour to always print "+ ". We still need to expand variables in PS1, PS2 and PS4. PR: 46441 (part of) Submitted by: schweikh Obtained from: NetBSD
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.113
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 3c2fa9c..438fc24 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd December 8, 2005
+.Dd June 15, 2006
.Dt SH 1
.Os
.Sh NAME
@@ -305,8 +305,9 @@ as it is read.
Useful for debugging.
.It Fl x Li xtrace
Write each command
-(preceded by
-.Dq Li "+ " )
+(preceded by the value of the
+.Ev PS4
+variable)
to standard error before it is executed.
Useful for debugging.
.El
@@ -2197,6 +2198,12 @@ unless you are the superuser, in which case it defaults to
.It Ev PS2
The secondary prompt string, which defaults to
.Dq Li "> " .
+.It Ev PS4
+The prefix for the trace output (if
+.Fl x
+is active).
+The default is
+.Dq Li "+ " .
.It Ev TERM
The default terminal setting for the shell.
This is inherited by children of the shell, and is used in the history
OpenPOWER on IntegriCloud