<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/expr, branch releng/10.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Add the Clang specific -Wmissing-variable-declarations to WARNS=6.</title>
<updated>2013-04-19T19:45:00+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2013-04-19T19:45:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7e659f9491705cacb49bd0154b1c23704f55ed0d'/>
<id>7e659f9491705cacb49bd0154b1c23704f55ed0d</id>
<content type='text'>
This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.

Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.

Announced on:	toolchain@
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.

Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.

Announced on:	toolchain@
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove redundant declaration of yyparse</title>
<updated>2012-05-22T03:01:54+00:00</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2012-05-22T03:01:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fcae0e3887ea9cb39b2f6e93f48b29add3184dc6'/>
<id>fcae0e3887ea9cb39b2f6e93f48b29add3184dc6</id>
<content type='text'>
Reported by:	tinderbox
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by:	tinderbox
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor mdoc nits.</title>
<updated>2012-05-13T14:16:04+00:00</updated>
<author>
<name>Joel Dahl</name>
<email>joel@FreeBSD.org</email>
</author>
<published>2012-05-13T14:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=35471bf8efcf9696126e98ded2084c1f23beb56e'/>
<id>35471bf8efcf9696126e98ded2084c1f23beb56e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rm[0].rm_so must be zero (an explicit check is made for zero in the</title>
<updated>2012-03-19T00:45:01+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-03-19T00:45:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8c3bbba8241a0ae8804aa9d788f1475ab99e6080'/>
<id>8c3bbba8241a0ae8804aa9d788f1475ab99e6080</id>
<content type='text'>
outer if condition)

Reviewed by:	se
Approved by:	cperciva
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
outer if condition)

Reviewed by:	se
Approved by:	cperciva
</pre>
</div>
</content>
</entry>
<entry>
<title>Whitespace cleanup:</title>
<updated>2012-02-25T15:21:43+00:00</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2012-02-25T15:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9d496f5ab6b6e7a42cff27ae932a324c6e420fdb'/>
<id>9d496f5ab6b6e7a42cff27ae932a324c6e420fdb</id>
<content type='text'>
 o Wrap sentences on to new lines
 o Cleanup trailing whitespace

Found with:	textproc/igor
MFC after:	1 week
X-MFC-With:	r232157
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 o Wrap sentences on to new lines
 o Cleanup trailing whitespace

Found with:	textproc/igor
MFC after:	1 week
X-MFC-With:	r232157
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix various typos in manual pages.</title>
<updated>2012-02-25T14:31:25+00:00</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2012-02-25T14:31:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3102cfe2e21aaea969dcc5245c0b70d9ae643e34'/>
<id>3102cfe2e21aaea969dcc5245c0b70d9ae643e34</id>
<content type='text'>
Submitted by:	amdmi3
PR:		165431
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	amdmi3
PR:		165431
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix style, since this file has just been touched in a major way.</title>
<updated>2011-07-09T12:20:15+00:00</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2011-07-09T12:20:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=69759f0829c3274f38a92f0a956b324c5bc9e908'/>
<id>69759f0829c3274f38a92f0a956b324c5bc9e908</id>
<content type='text'>
No actual code changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No actual code changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Some refactoring for easier maintenance of the code. This is a follow-up</title>
<updated>2011-07-09T12:14:57+00:00</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2011-07-09T12:14:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6fbe7bf4f28203afb9f07af23d6beb21c3db34a4'/>
<id>6fbe7bf4f28203afb9f07af23d6beb21c3db34a4</id>
<content type='text'>
to re-establishment of 64bit arithmetic, but is committed separately, to
not obscure that conversion. This commit does not change the observed
behaviour of expr in any way. Style will be fixed in a follow-up commit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to re-establishment of 64bit arithmetic, but is committed separately, to
not obscure that conversion. This commit does not change the observed
behaviour of expr in any way. Style will be fixed in a follow-up commit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make /bin/expr support 64bit numeric range and range checks by default,</title>
<updated>2011-07-09T12:05:53+00:00</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2011-07-09T12:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fa717604a42dff3416a3e299da0abf01d9f8521e'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
<entry>
<title>expr(1): Add sh(1) versions of examples, remove an incorrect example.</title>
<updated>2010-09-09T21:59:53+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-09-09T21:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f390d8d927e2bc6a8afd086bfdcdbf5edcbc6875'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
