History log of /freebsd-14.2/bin/expr/expr.1 (Results 1 – 25 of 38)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# fa9896e0 16-Aug-2023 Warner Losh <[email protected]>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0
# c5ca929f 05-Oct-2016 Sevan Janiyan <[email protected]>

Document origins of expr & authors
http://minnie.tuhs.org/cgi-bin/utree.pl?file=PWB1/usr/man/man1/expr.1

PR: 173979
Approved by: bcr (mentor)
MFC after: 5 days
Differential Revision: https://review

Document origins of expr & authors
http://minnie.tuhs.org/cgi-bin/utree.pl?file=PWB1/usr/man/man1/expr.1

PR: 173979
Approved by: bcr (mentor)
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D8104

show more ...


Revision tags: release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0
# dc814fa4 26-Apr-2015 Baptiste Daroussin <[email protected]>

Pet manlint


# ef2a65a8 26-Apr-2015 Baptiste Daroussin <[email protected]>

Use mdoc(7) macros for curly braces


Revision tags: release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0
# 35471bf8 13-May-2012 Joel Dahl <[email protected]>

Minor mdoc nits.


Revision tags: release/8.3.0_cvs, release/8.3.0
# 9d496f5a 25-Feb-2012 Glen Barber <[email protected]>

Whitespace cleanup:
o Wrap sentences on to new lines
o Cleanup trailing whitespace

Found with: textproc/igor
MFC after: 1 week
X-MFC-With: r232157


# 3102cfe2 25-Feb-2012 Glen Barber <[email protected]>

Fix various typos in manual pages.

Submitted by: amdmi3
PR: 165431
MFC after: 1 week


Revision tags: release/9.0.0
# fa717604 09-Jul-2011 Stefan Eßer <[email protected]>

Make /bin/expr support 64bit numeric range and range checks by default,
again. This brings back the behaviour of expr in FreeBSD-4, which had been
reverted due to an assumed incompatbility with POSIX

Make /bin/expr support 64bit numeric range and range checks by default,
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)

show more ...


Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0
# f390d8d9 09-Sep-2010 Jilles Tjoelker <[email protected]>

expr(1): Add sh(1) versions of examples, remove an incorrect example.

The three examples are better done using sh(1) itself these days.

The example
expr -- "$a" : ".*"
is incorrect in the general

expr(1): Add sh(1) versions of examples, remove an incorrect example.

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

show more ...


Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# 9f3cef91 04-Mar-2007 Ruslan Ermilov <[email protected]>

Fix markup.


Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# 6fca4c7c 16-Jan-2005 Ruslan Ermilov <[email protected]>

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


# 5f05dfac 13-Jan-2005 Ruslan Ermilov <[email protected]>

Removed harmful empty lines that crept in during the copyright
header update.


# 9ddb49cb 10-Jan-2005 Warner Losh <[email protected]>

/*- or .\"- or #- to begin license clauses.


Revision tags: release/5.3.0_cvs, release/5.3.0
# 5292d2ae 12-Jul-2004 Tim J. Robbins <[email protected]>

Remove BUGS section that talked about missing multibyte character support.
We have support now that the regular expression routines do.


# 128dc4a2 03-Jul-2004 Tim J. Robbins <[email protected]>

Document missing multibyte character handling in utilities specified
by POSIX.


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0
# e27480d6 26-Nov-2002 Ruslan Ermilov <[email protected]>

mdoc(7) police:

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


# 98d13c7e 25-Nov-2002 Ruslan Ermilov <[email protected]>

mdoc(7) police: markup fixes.

Approved by: re


# c9885518 28-Oct-2002 Garrett Wollman <[email protected]>

Create a small library function, check_utility_compat(3), to determine
whether a named utility should behave in FreeBSD 4.x-compatible mode
or in a standard mode (default standard). The configuratio

Create a small library function, check_utility_compat(3), to determine
whether a named utility should behave in FreeBSD 4.x-compatible mode
or in a standard mode (default standard). The configuration is done
malloc(3)-style, with either an environment variable or a symlink.

Update expr(1) to use this new interface.

show more ...


Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 9dfcbc3b 29-May-2002 Ruslan Ermilov <[email protected]>

mdoc(7) police: markup nits.


# 94a48596 11-May-2002 Garrett Wollman <[email protected]>

EXPR_COMPAT should imply -e, since there is no way to specify it otherwise,
and -e reflects the historic behavior of FreeBSD's expr.


# 1393277e 10-May-2002 Garrett Wollman <[email protected]>

The response to my POSIX interpretation request says that `expr'
is required to be oblivious to overflow and to use the data type `long'.
(Division by zero is undefined in ISO C so it's still OK to c

The response to my POSIX interpretation request says that `expr'
is required to be oblivious to overflow and to use the data type `long'.
(Division by zero is undefined in ISO C so it's still OK to check for it
here.) Add a new `-e' flag to get the old, more useful behavior.

show more ...


# 96ab7da3 22-Apr-2002 Garrett Wollman <[email protected]>

Provide an environment variabloe, EXPR_COMPAT, which disables option
parsing for compatibility with old implementations.


# dc2f94a3 22-Mar-2002 Garrett Wollman <[email protected]>

Typo (if => of).


# 7316a946 22-Mar-2002 Garrett Wollman <[email protected]>

Add a word of caution about integer arithmetic range and overflow detection.


# f477880a 22-Mar-2002 Garrett Wollman <[email protected]>

Fix a few formatting brainos and make the formatting of the EXAMPLES
section somewhat clearer.


12