diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2008-12-26 22:31:45 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2008-12-26 22:31:45 +0000 |
| commit | 5e7fbb7b5ecdb1f3c41a8dabfd5c9c8393d37efe (patch) | |
| tree | b90e09ee231e1179a41d7938f1bd9b930e08e1cc /usr.bin/make/make.1 | |
| parent | 62a353c0bd192fa986861be42ecb829afe8efce2 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/make.1')
| -rw-r--r-- | usr.bin/make/make.1 | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index 44421e5bb2da..6333509c047c 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -1130,24 +1130,35 @@ has been defined. .Pp An .Ar expression -may also be an arithmetic or string comparison, with the left-hand side -being a variable expansion. -Variable expansion is -performed on both sides of the comparison, after which the integral +may also be a numeric or string comparison: +in this case, the left-hand side +.Ar must be +a variable expansion, whereas the right-hand side can be a +constant or a variable expansion. +Variable expansion is performed on both sides, after which the resulting values are compared. A value is interpreted as hexadecimal if it is preceded by 0x, otherwise it is decimal; octal numbers are not supported. -The standard C relational operators are all supported. -If after -variable expansion, either the left or right hand side of a +.Pp +String comparison can only use the .Sq Ic == or .Sq Ic != -operator is not an integral value, then -string comparison is performed between the expanded -variables. -If no relational operator is given, it is assumed that the expanded -variable is being compared against 0. +operators, whereas numeric values (both integer and floating point) +can also be compared using the +.Sq Ic > +, +.Sq Ic >= +, +.Sq Ic < +and +.Sq Ic <= +operators. +.Pp +If no relational operator (and right-hand value) are given, an implicit +.Sq Ic != 0 +is used. However be very careful in using this feature especially +when the left-hand side variable expansion returns a string. .Pp When .Nm |
