summaryrefslogtreecommitdiff
path: root/usr.bin/dc/dc.1
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-09-30 18:33:36 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-09-30 18:33:36 +0000
commite6543e9ee25b6a30182de6cc78d812f81727b1a9 (patch)
treeced2def7fc946926c980b197a06a3fa460df4e52 /usr.bin/dc/dc.1
parent88a72857d93404b78081f9247cb1d1ef76e030c5 (diff)
Teach dc(1) how to read strings with unbalanced braces by introducing
backslash as an escape char. This is needed for bc(1), which is required by Posix to handle strings with brackets in them.
Diffstat (limited to 'usr.bin/dc/dc.1')
-rw-r--r--usr.bin/dc/dc.17
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/dc/dc.1 b/usr.bin/dc/dc.1
index 32643abc890..f9d719e9a4f 100644
--- a/usr.bin/dc/dc.1
+++ b/usr.bin/dc/dc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dc.1,v 1.4 2003/09/22 14:50:32 otto Exp $
+.\" $OpenBSD: dc.1,v 1.5 2003/09/30 18:33:35 otto Exp $
.\"
.\" Copyright (C) Caldera International Inc. 2001-2002.
.\" All rights reserved.
@@ -189,7 +189,10 @@ If the top of the stack is a string, replace it with the integer 0.
Puts the bracketed
.Tn ASCII
string onto the top of the stack.
-The brackets may be nested.
+If the string includes brackets, these must be properly balanced.
+The backslash character \e\ may be used as an escape character, making it
+possible to include unbalanced brackets in strings.
+To include a backslash into a string, use a double backslash.
.It Xo
.Cm < Ns Va x
.Cm > Ns Va x