[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.24 and 1.25

version 1.24, 2003/12/21 10:02:46 version 1.25, 2003/12/21 11:18:25
Line 173  by
Line 173  by
 .An Jaromir Dolecek  .An Jaromir Dolecek
 .Aq jdolecek@NetBSD.org .  .Aq jdolecek@NetBSD.org .
 .Sh NOTES  .Sh NOTES
 Empty string  The empty string
 .Dq  .Dq
 cannot be matched with intuitive:  cannot be matched with the intuitive:
 .Bd -literal -offset indent  .Bd -literal -offset indent
 expr '' : '$'  expr '' : '$'
 .Ed  .Ed
 .Pp  .Pp
 The reason is the returned number of matched characters (zero)  The reason is that the returned number of matched characters (zero)
 is indistinguishable from failed match, so this returns failure.  is indistinguishable from a failed match, so this returns failure.
 To match empty string, use something like:  To match the empty string, use something like:
 .Bd -literal -offset indent  .Bd -literal -offset indent
 expr x'' : 'x$'  expr x'' : 'x$'
 .Ed  .Ed

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb <webmaster@jp.NetBSD.org>