[BACK]Return to expr.1 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin / expr

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/bin/expr/expr.1 between version 1.17 and 1.18

version 1.17, 2001/10/18 11:00:03 version 1.18, 2001/12/20 20:05:12
Line 95  compare operators
Line 95  compare operators
 .It  .It
 .Dq \Z'\*[tty-rn]'|  .Dq \Z'\*[tty-rn]'|
 .El  .El
   .Sh EXIT STATUS
   The
   .Nm
   utility exits with one of the following values:
   .Bl -tag -width Ds -compact
   .It 0
   the expression is neither an empty string nor 0.
   .It 1
   the expression is an empty string or 0.
   .It 2
   the expression is invalid.
   .It >2
   an error occurred (such as memory allocation failure).
   .El
 .Sh EXAMPLES  .Sh EXAMPLES
 .Bl -enum  .Bl -enum
 .It  .It
Line 112  in variable a.
Line 126  in variable a.
 The following example returns the number of characters in variable a.  The following example returns the number of characters in variable a.
 .Dl expr $a Li : '.*'  .Dl expr $a Li : '.*'
 .El  .El
 .Sh EXIT STATUS  
 The  
 .Nm  
 utility exits with one of the following values:  
 .Bl -tag -width Ds -compact  
 .It 0  
 the expression is neither an empty string nor 0.  
 .It 1  
 the expression is an empty string or 0.  
 .It 2  
 the expression is invalid.  
 .It >2  
 an error occurred (such as memory allocation failure).  
 .El  
 .Sh STANDARDS  .Sh STANDARDS
 The  The
 .Nm  .Nm
 utility conforms to  utility conforms to
 .St -p1003.2 .  .St -p1003.2 .
 .Sh AUTHOR  .Sh AUTHORS
 Original implementation was written by  Original implementation was written by
 .An J.T. Conklin Aq jtc@netbsd.org .  .An J.T. Conklin Aq jtc@netbsd.org .
 It was rewritten in  It was rewritten in

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb <webmaster@jp.NetBSD.org>