<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/expr/expr.1, branch release/9.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-07-09T12:05:53Z</updated>
<entry>
<title>Make /bin/expr support 64bit numeric range and range checks by default,</title>
<updated>2011-07-09T12:05:53Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2011-07-09T12:05:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fa717604a42dff3416a3e299da0abf01d9f8521e'/>
<id>urn:sha1:fa717604a42dff3416a3e299da0abf01d9f8521e</id>
<content type='text'>
again. This brings back the behaviour of expr in FreeBSD-4, which had been
reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5.

This issue has been discussed in the freebsd-standards list, and the
consensus was, that POSIX.1 is in fact not violated by this extension,
since it affects only cases of POSIX undefined behaviour (overflow of
signed long).

Other operating systems did upgrade their versions of expr to support
64bit range, after it had been initially brought to FreeBSD. They have
used it for a decade without problems, meanwhile.

The -e option is retained, but it will only select less strict checking
of numeric parameters (leading white-space, leading "+" are allowed and
skipped, an empty string is considered to represent 0 in numeric context.)
The call of check_utility_compat() as a means of establishing backwards
compatibility with FreeBSD-4 is considered obsolete, but preserved in
this commit. It is expected to be removed in a later revision of this
file.
Reviewed by:	bde, das, jilles
MFC after:	2 month (those parts that do not violate POLA)
</content>
</entry>
<entry>
<title>expr(1): Add sh(1) versions of examples, remove an incorrect example.</title>
<updated>2010-09-09T21:59:53Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-09-09T21:59:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f390d8d927e2bc6a8afd086bfdcdbf5edcbc6875'/>
<id>urn:sha1:f390d8d927e2bc6a8afd086bfdcdbf5edcbc6875</id>
<content type='text'>
The three examples are better done using sh(1) itself these days.

The example
  expr -- "$a" : ".*"
is incorrect in the general case, as "$a" may be an operator.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix markup.</title>
<updated>2007-03-04T19:52:07Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2007-03-04T19:52:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f3cef91087c68f23d917212fc7b88e7c266feef'/>
<id>urn:sha1:9f3cef91087c68f23d917212fc7b88e7c266feef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add the new standard EXIT STATUS section where appropriate.</title>
<updated>2005-01-16T16:41:59Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-01-16T16:41:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fca4c7c3f16b87ad8b9ffa6564f5654f44ed581'/>
<id>urn:sha1:6fca4c7c3f16b87ad8b9ffa6564f5654f44ed581</id>
<content type='text'>
Sort standard sections in the (documented) preferred order.
</content>
</entry>
<entry>
<title>Removed harmful empty lines that crept in during the copyright</title>
<updated>2005-01-13T08:46:19Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-01-13T08:46:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f05dfac3226e634a49596250afd5b9ecc885e1d'/>
<id>urn:sha1:5f05dfac3226e634a49596250afd5b9ecc885e1d</id>
<content type='text'>
header update.
</content>
</entry>
<entry>
<title>/*- or .\"- or #- to begin license clauses.</title>
<updated>2005-01-10T08:39:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-10T08:39:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ddb49cbe45441fa3f3a10f6dd355e9956480b5f'/>
<id>urn:sha1:9ddb49cbe45441fa3f3a10f6dd355e9956480b5f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove BUGS section that talked about missing multibyte character support.</title>
<updated>2004-07-12T10:46:55Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-07-12T10:46:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5292d2aec0d20a8bda87f5d518c040370bb7fc8a'/>
<id>urn:sha1:5292d2aec0d20a8bda87f5d518c040370bb7fc8a</id>
<content type='text'>
We have support now that the regular expression routines do.
</content>
</entry>
<entry>
<title>Document missing multibyte character handling in utilities specified</title>
<updated>2004-07-03T02:03:44Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-07-03T02:03:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=128dc4a2e367eb9a66d26898531004140428b285'/>
<id>urn:sha1:128dc4a2e367eb9a66d26898531004140428b285</id>
<content type='text'>
by POSIX.
</content>
</entry>
<entry>
<title>mdoc(7) police:</title>
<updated>2002-11-26T17:55:41Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-11-26T17:55:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e27480d64d80d828ffd89ae068774389a3c2c764'/>
<id>urn:sha1:e27480d64d80d828ffd89ae068774389a3c2c764</id>
<content type='text'>
Revert to using the .Tn POSIX and .Tn ANSI instead of \*[Px] and \*[Ai]
strings; using these strings is unsafe in troff mode, as they include a
change in a font size.

Approved by:	re
</content>
</entry>
<entry>
<title>mdoc(7) police: markup fixes.</title>
<updated>2002-11-25T13:20:30Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-11-25T13:20:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98d13c7e51ccd70ee88c3c55a587c7fc8157a972'/>
<id>urn:sha1:98d13c7e51ccd70ee88c3c55a587c7fc8157a972</id>
<content type='text'>
Approved by:	re
</content>
</entry>
</feed>
