OpenBSD CVS

CVS log for src/bin/expr/expr.1


[BACK] Up to [local] / src / bin / expr

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 22 19:53:22 2022 UTC (17 months, 2 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Denote multiple arguments with 'arg ...' not 'args'

A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally;  omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 16 20:10:58 2017 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.23: +8 -7 lines
Diff to previous 1.23 (colored)

Explicitly say that expr(1) handles decimal integers only, as mandated
by POSIX and as implemented in our utility; triggered by a question from
Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net> on misc@.
OK millert@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 16 15:30:10 2015 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Properly escape punctuation when given as an argument to a macro;
this was the only mandoc warning in src/bin.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 23 18:13:27 2014 UTC (10 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.21: +19 -1 lines
Diff to previous 1.21 (colored)

add HISTORY and AUTHORS;
my research triggered by a question from Adam Moskowitz via Kirk McKusick;
feedback and ok jmc@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 3 10:00:40 2010 UTC (13 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.20: +15 -12 lines
Diff to previous 1.20 (colored)

remove some unneccessary macros and put EXAMPLES in a more standard format;

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 3 09:53:20 2010 UTC (13 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

add an EXIT STATUS section for /bin;

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 22 08:09:29 2010 UTC (13 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.18: +17 -17 lines
Diff to previous 1.18 (colored)

move exit returns blurb out of DIAGNOSTICS; from daniel dickman

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 8 17:15:09 2009 UTC (15 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 22 17:52:19 2009 UTC (15 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

document regexp support
okay millert@, jmc@

Revision 1.16 / (download) - annotate - [select for diffs], Thu May 31 19:19:14 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

convert to new .Dd format;

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 29 15:04:59 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 22 12:01:41 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.13: +17 -1 lines
Diff to previous 1.13 (colored)

document matching the empty string;
started by vax at carolina dot rr dot com (NetBSD PR 23810),
resolved by jdolecek@netbsd (rev. 1.24);

ok millert@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 12 20:12:35 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

more .Li

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 14 02:57:27 2002 UTC (21 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

use $ or # before commands in examples

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 13 14:00:15 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 18 06:55:08 2000 UTC (23 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +7 -8 lines
Diff to previous 1.9 (colored)

Add some rudimentary EXAMPLES sections and standardize the way we display
existing EXAMPLES sections.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 17 18:15:13 2000 UTC (24 years, 3 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

Remove hard sentence breaks.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 23 10:43:07 1999 UTC (24 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.7: +23 -16 lines
Diff to previous 1.7 (colored)

Formatting fixes. Also, add a SEE ALSO section and Xr test(1).

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 4 02:45:13 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.6: +15 -15 lines
Diff to previous 1.6 (colored)

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 15 01:20:21 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 28 03:20:33 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 14 22:13:47 1998 UTC (25 years, 9 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +7 -6 lines
Diff to previous 1.3 (colored)

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 19 06:36:30 1997 UTC (26 years, 9 months ago) by denny
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Note return code >2 if malloc fails (POSIX spec behavior).

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 23 14:20:09 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

update rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:37:13 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:37:13 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.