From a6d9fe51dc4ce36c9511bfe4957be3089479ebd3 Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 23 Mar 2009 12:16:58 +0000 Subject: [PATCH] give example --- mksh.1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mksh.1 b/mksh.1 index 4ead112..5953f48 100644 --- a/mksh.1 +++ b/mksh.1 @@ -1,4 +1,4 @@ -.\" $MirOS: src/bin/mksh/mksh.1,v 1.152 2009/03/23 12:15:33 tg Exp $ +.\" $MirOS: src/bin/mksh/mksh.1,v 1.153 2009/03/23 12:16:58 tg Exp $ .\" $OpenBSD: ksh.1,v 1.128 2009/03/06 12:28:36 jmc Exp $ .\"- .\" Try to make GNU groff and AT&T nroff more compatible @@ -3860,7 +3860,10 @@ expr \-a expr Logical AND. .Ed .Pp Note that a number actually may be an arithmetic expression, such as -a mathematical term or the name of an integer variable. +a mathematical term or the name of an integer variable: +.Bd -literal -offset indent +x=1; [ x -eq 1 ] evaluates to true +.Ed .Pp Note that some special rules are applied (courtesy of POSIX) if the number of