summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.1
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2022-09-02 16:24:31 +0000
committersjg <sjg@NetBSD.org>2022-09-02 16:24:31 +0000
commitb7bcc178e391335d538accb7b91e6e67b58a2dbf (patch)
tree3dcf663e05350a0a472e56d3b4b34ed253b7a952 /usr.bin/make/make.1
parent7b79d1b834961e1ac8a6fb5be9b6806d82c3497d (diff)
make: add .break to terminate .for loop early
When .break is encountered within a .for loop it causes immediate termination. Outside of a .for loop .break causes a parse error. Reviewed by: christos
Diffstat (limited to 'usr.bin/make/make.1')
-rw-r--r--usr.bin/make/make.112
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index c2addefd859..b628e8fbfa7 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.330 2022/08/14 22:11:20 uwe Exp $
+.\" $NetBSD: make.1,v 1.331 2022/09/02 16:24:31 sjg Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
-.Dd August 14, 2022
+.Dd September 2, 2022
.Dt MAKE 1
.Os
.Sh NAME
@@ -2084,6 +2084,14 @@ inside the body of the for loop.
The number of words must come out even; that is, if there are three
iteration variables, the number of words provided must be a multiple
of three.
+
+If
+.Sq Ic .break
+is encountered within a
+.Cm \&.for
+loop, it causes early termination of the loop,
+otherwise a parse error.
+
.Sh COMMENTS
Comments begin with a hash
.Pq Ql \&#