summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-11-09 21:56:55 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-11-09 21:56:55 +0000
commitcf74e00b6dbdab725bf05525850163b3db7c61c8 (patch)
tree5771419679e90b9da8bb9ab91dbde8dd7d7311d3 /bin/ksh
parent1f3a0aa0fc81150e541ecfad55c0bb6c49c87844 (diff)
/bin/sh supports PS1 expansion;
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/sh.118
-rw-r--r--bin/ksh/sh.1tbl18
2 files changed, 30 insertions, 6 deletions
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index 5da6b46b4ec..4e64b389119 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.51 2004/11/05 14:56:31 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.52 2004/11/09 21:56:54 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -1280,8 +1280,20 @@ below.
.It Ev PPID
The process ID of the shell's parent (read-only).
.It Ev PS1
-The prompt is printed verbatim (i.e., no substitutions are done).
-Default is
+The primary prompt for interactive shells.
+Parameter, command, and arithmetic
+substitutions are performed.
+.Ql \&!
+is replaced with the current command number (see the
+.Ic fc
+command below).
+A literal
+.Ql \&!
+can be put in the prompt by placing
+.Ql !!
+in
+.Ev PS1 .
+The default is
.Dq \&$\ \&
for non-root users,
.Dq \&#\ \&
diff --git a/bin/ksh/sh.1tbl b/bin/ksh/sh.1tbl
index ab67ade1db2..7691d4a2f2d 100644
--- a/bin/ksh/sh.1tbl
+++ b/bin/ksh/sh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1tbl,v 1.51 2004/11/05 14:56:31 jmc Exp $
+.\" $OpenBSD: sh.1tbl,v 1.52 2004/11/09 21:56:54 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -1280,8 +1280,20 @@ below.
.It Ev PPID
The process ID of the shell's parent (read-only).
.It Ev PS1
-The prompt is printed verbatim (i.e., no substitutions are done).
-Default is
+The primary prompt for interactive shells.
+Parameter, command, and arithmetic
+substitutions are performed.
+.Ql \&!
+is replaced with the current command number (see the
+.Ic fc
+command below).
+A literal
+.Ql \&!
+can be put in the prompt by placing
+.Ql !!
+in
+.Ev PS1 .
+The default is
.Dq \&$\ \&
for non-root users,
.Dq \&#\ \&