diff options
author | 2004-11-09 21:56:54 +0000 | |
---|---|---|
committer | 2004-11-09 21:56:54 +0000 | |
commit | d7eb6b62e7459f30ab220e2e47bfedcb4dc020f9 (patch) | |
tree | 39aab520efef8709203acd33c57eb72089535b6e | |
parent | Kill guarded_access() - the way we map OBIO, there is no need for special (diff) | |
download | wireguard-openbsd-d7eb6b62e7459f30ab220e2e47bfedcb4dc020f9.tar.xz wireguard-openbsd-d7eb6b62e7459f30ab220e2e47bfedcb4dc020f9.zip |
/bin/sh supports PS1 expansion;
-rw-r--r-- | bin/ksh/sh.1 | 18 | ||||
-rw-r--r-- | bin/ksh/sh.1tbl | 18 |
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 \&#\ \& |