give example

This commit is contained in:
tg
2009-03-23 12:16:58 +00:00
parent c37c7aea61
commit a6d9fe51dc

7
mksh.1
View File

@ -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