summaryrefslogtreecommitdiff
path: root/usr.bin/bc/USD.doc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-11-09 19:27:28 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-11-09 19:27:28 +0000
commit6ba2859ff51745038306c59d4fe9eefe6f164aff (patch)
treedcecae2def6bbf59eb3e675c1f90a62d93f902c7 /usr.bin/bc/USD.doc
parent96c234df114fdc987247d9b5e4ffbaf2025f80a9 (diff)
Introduce `last' as a synonym for `.' and document them.
Diffstat (limited to 'usr.bin/bc/USD.doc')
-rw-r--r--usr.bin/bc/USD.doc/bc7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/bc/USD.doc/bc b/usr.bin/bc/USD.doc/bc
index b1695909a96..18dbfa48e55 100644
--- a/usr.bin/bc/USD.doc/bc
+++ b/usr.bin/bc/USD.doc/bc
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bc,v 1.4 2003/10/22 12:25:13 otto Exp $
+.\" $OpenBSD: bc,v 1.5 2003/11/09 19:27:27 otto Exp $
.\"
.\" Copyright (C) Caldera International Inc. 2001-2002.
.\" All rights reserved.
@@ -783,7 +783,7 @@ The following are reserved keywords:
length return
while quit
for continue
- else
+ else last
.fi
.ft
.NH 2
@@ -798,6 +798,9 @@ Expressions
.PP
The value of an expression is printed unless the main
operator is an assignment.
+The value printed is assigned to the special variable \fBlast\fP.
+A single dot may be used as a synonym for \fBlast\fP.
+This is a non-portable extension.
Precedence is the same as the order
of presentation here, with highest appearing first.
Left or right associativity, where applicable, is