summaryrefslogtreecommitdiff
path: root/bin/expr/expr.1
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1993-08-16 23:22:49 +0000
committerjtc <jtc@NetBSD.org>1993-08-16 23:22:49 +0000
commit04b0d37be1d165a4d5e7e3fd7bb58708a5fc2744 (patch)
tree03b52b1952cad59c541e852992b074879ca16437 /bin/expr/expr.1
parente9c8ee33b02c219abc130033ae43c165b5808dbd (diff)
Document that string comparisons are done using the locale specific
collation sequence.
Diffstat (limited to 'bin/expr/expr.1')
-rw-r--r--bin/expr/expr.15
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index bf540f47d7a..6420e2e0e94 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -28,7 +28,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: expr.1,v 1.2 1993/08/02 17:15:41 mycroft Exp $
+.\" $Id: expr.1,v 1.3 1993/08/16 23:22:49 jtc Exp $
.\"
.Dd July 3, 1993
.Dt EXPR 1
@@ -67,7 +67,8 @@ if neither expression evaluates to an empty string or zero;
otherwise, returns zero.
.It Ar expr1 Li "{=, >, >=, <, <=, !=}" Ar expr2
Returns the results of integer comparision if both arguments are integers;
-otherwise, returns the results of lexical comparison.
+otherwise, returns the results of string comparison using the locale-specific
+collation sequence.
The result of each comparison is 1 if the specified relation is true,
or 0 if the relation is false.
.It Ar expr1 Li "{+, -}" Ar expr2