Module Name: src
Committed By: rillig
Date: Tue Nov 29 23:56:05 UTC 2022
Modified Files:
src/usr.bin/make: make.1
Log Message:
make.1: clarify in which case an expression may omit braces
To generate a diff of this commit:
cvs rdiff -u -r1.349 -r1.350 src/usr.bin/make/make.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/make.1
diff -u src/usr.bin/make/make.1:1.349 src/usr.bin/make/make.1:1.350
--- src/usr.bin/make/make.1:1.349 Tue Nov 15 07:58:00 2022
+++ src/usr.bin/make/make.1 Tue Nov 29 23:56:05 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.349 2022/11/15 07:58:00 rillig Exp $
+.\" $NetBSD: make.1,v 1.350 2022/11/29 23:56:05 rillig 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 October 2, 2022
+.Dd November 29, 2022
.Dt MAKE 1
.Os
.Sh NAME
@@ -645,7 +645,8 @@ References to variables have the form
.Cm \&${ Ns Ar name Ns Oo Ns Cm \&: Ns Ar modifiers Oc Ns Cm \&}
or
.Cm \&$( Ns Ar name Ns Oo Ns Cm \&: Ns Ar modifiers Oc Ns Cm \&) .
-If the variable name consists of only a single character,
+If the variable name consists of only a single character
+and the expression contains no modifiers,
the surrounding curly braces or parentheses are not required.
This shorter form is not recommended.
.Pp