summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-02-08 17:39:34 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-02-08 17:39:34 +0000
commit0e3c98a569260543b6a1745432a9057f9e30e7b4 (patch)
tree9df18552caf3c6164ae92087fbd0adb7d02e5b16 /bin/ksh/sh.1
parentaa57090f2ef03bcf3757bd7ce467e83a652954c8 (diff)
use command prompts and literal for commands;
Diffstat (limited to 'bin/ksh/sh.1')
-rw-r--r--bin/ksh/sh.114
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index da18683d686..414b3d6dcf2 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.63 2005/02/08 17:28:52 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.64 2005/02/08 17:39:32 jmc Exp $
.\"
.\" Public Domain
.\"
@@ -364,8 +364,8 @@ operators are
For example, both of these commands will print only
.Qq bar :
.Bd -literal -offset indent
-false && echo foo || echo bar
-true || echo foo && echo bar
+$ false && echo foo || echo bar
+$ true || echo foo && echo bar
.Ed
.Pp
The
@@ -422,14 +422,14 @@ that are followed by reserved words must end with a semicolon, a newline, or
a (syntactically correct) reserved word.
For example, the following are all valid:
.Bd -literal -offset indent
-{ echo foo; echo bar; }
-{ echo foo; echo bar\*(Ltnewline\*(Gt }
-{ { echo foo; echo bar; } }
+$ { echo foo; echo bar; }
+$ { echo foo; echo bar\*(Ltnewline\*(Gt }
+$ { { echo foo; echo bar; } }
.Ed
.Pp
This is not valid:
.Pp
-.Dl { echo foo; echo bar }
+.Dl $ { echo foo; echo bar }
.Bl -tag -width Ds
.It Pq Ar list
Execute