The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / bin / expr

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 28 10:48:16 2022 UTC (19 months, 3 weeks ago) by hgutch
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Change back various occurrences of \*[Le], \*[Ge] (less/greater equal)
and \*(ua (upwards arrow) to literal "<=", ">=" and "^" whenever
appropriate (e.g., in code examples).

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 3 21:33:23 2017 UTC (6 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: phil-wifi
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)

Remove workaround for ancient HTML generation code.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 23 20:34:23 2016 UTC (7 years, 7 months ago) by sevan
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.35: +6 -8 lines
Diff to previous 1.35 (colored)

Mark email addresses as mailto links, heads up by Sascha Wildner.
Move email addresses to same line as author name.
Do not split the third author entry on to a new line.
Public domain is not licensed by definition, heads up by Robert Elz.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 23 03:21:16 2016 UTC (7 years, 7 months ago) by sevan
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Instruction to not split the line needs to be stated separately.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Aug 23 02:58:45 2016 UTC (7 years, 7 months ago) by sevan
Branch: MAIN
Changes since 1.33: +20 -6 lines
Diff to previous 1.33 (colored)

Add HISTORY section
Credit author of initial implementation in AUTHORS section
Bump date
Remove contraction highlighted by textproc/igor

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 12 17:27:04 2012 UTC (11 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Changes since 1.32: +29 -13 lines
Diff to previous 1.32 (colored)

Improvements: wording, punctuation, macro usage.

From patch by Bug Hunting.

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 9 22:29:06 2012 UTC (11 years, 11 months ago) by jdf
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Remove an unnecessary space in the manpage.  Patch provided by Bug Hunting.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Mar 23 18:10:25 2011 UTC (13 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

minor usage nit

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 24 00:29:30 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.29: +37 -37 lines
Diff to previous 1.29 (colored)

Explicitly quote | and : meant as separate operator. Kill trailing
whitespace. Don't use \Z' with obscure character entity. Reorder sections
to canonical order.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 30 13:10:46 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Changes since 1.28: +1 -8 lines
Diff to previous 1.28 (colored)

Convert TNF licenses to new 2 clause variant

Revision 1.28 / (download) - annotate - [select for diffs], Fri Apr 23 13:28:58 2004 UTC (20 years ago) by wiz
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Grammar improvement by Patrick Welche.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 20 20:47:47 2004 UTC (20 years ago) by wiz
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Add some articles; use No instead of Li in one place
(more correct, see e.g. PostScript output); bump date for previous.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 20 19:44:51 2004 UTC (20 years ago) by jdolecek
Branch: MAIN
Changes since 1.25: +14 -2 lines
Diff to previous 1.25 (colored)

add support for 'length' keyword, for compatibility with GNU expr

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 21 11:18:25 2003 UTC (20 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Add some articles.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 21 10:02:46 2003 UTC (20 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.23: +49 -4 lines
Diff to previous 1.23 (colored)

add a note explaining empty string matching via :
this adresses bin/23810 by VaX#n8

bump date and update copyright

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 29 18:25:22 2003 UTC (21 years ago) by perry
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

spelling errors, some from Igor Sobrado in PR 19670

Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 14 16:17:30 2003 UTC (21 years, 2 months ago) by grant
Branch: MAIN
Changes since 1.21: +6 -4 lines
Diff to previous 1.21 (colored)

'NetBSD.org'

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 25 15:18:39 2002 UTC (21 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.20: +9 -5 lines
Diff to previous 1.20 (colored)

New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 19 21:14:45 2002 UTC (22 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

rewritten in NetBSD 1.6 -> rewritten for NetBSD 1.6

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 8 01:21:57 2002 UTC (22 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.18: +7 -7 lines
Diff to previous 1.18 (colored)

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 20 20:05:12 2001 UTC (22 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.17: +16 -16 lines
Diff to previous 1.17 (colored)

Use standard headers, sort sections.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 18 11:00:03 2001 UTC (22 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Quote `:' correctly.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 7 10:14:43 2001 UTC (22 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.15: +25 -18 lines
Diff to previous 1.15 (colored)

Fix the operator precedence list to match reality. Operators were incorrectly
grouped there.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 30 16:20:12 2000 UTC (23 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.14: +50 -6 lines
Diff to previous 1.14 (colored)

list parenthesis usage similar way as other operators
document operator precedence
rename section BUGS to COMPATIBILITY, add paragraph about -- handling

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 19 17:20:00 2000 UTC (23 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.13: +42 -5 lines
Diff to previous 1.13 (colored)

reimplement expr using lexical parser generated by yacc
highlights:
* / is treated correctly depending upon context (addresses PR # 10995)
* use 64 bit arithmetic, so expr is able to process integer values from
	-(2**63) to (2**63 - 1)
* checks for integer over- & underflows added
* error messages improved, more error checking added

add AUTHOR section to manpage
add BUGS section, and mention possible drawbacks with other expr implementations

XXX the old expr treated empty string in arithmetic expressions as if it was 0
XXX this behaviour has been retained

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 4 07:30:08 2000 UTC (23 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 28 02:11:05 2000 UTC (23 years, 7 months ago) by hubertf
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Add 'RETURN VALUE' section header.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 14 07:14:41 2000 UTC (24 years, 3 months ago) by mjl
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

On memory allocation failure, return 3 as per POSIX. (from OpenBSD)

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 20 08:51:56 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

Fix .Nm usage.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 28 23:27:13 1995 UTC (28 years, 11 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.8: +3 -30 lines
Diff to previous 1.8 (colored)

Winning Strategies has placed this code into the Public Domain

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 21 09:05:37 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

convert to new RCS id conventions.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 29 01:49:42 1994 UTC (30 years, 2 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Fix spelling error in Copyright notice

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 11 02:13:18 1994 UTC (30 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Fix spelling errors.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 4 22:06:59 1993 UTC (30 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.4: +9 -9 lines
Diff to previous 1.4 (colored)

Document the new, less restrictive, behavior of the matching operator.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 28 04:21:00 1993 UTC (30 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.3: +3 -5 lines
Diff to previous 1.3 (colored)

Document the fact that expr is POSIX.2 compliant.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 16 23:22:49 1993 UTC (30 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Document that string comparisons are done using the locale specific
collation sequence.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 2 17:15:41 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

Makefile

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 20 20:16:26 1993 UTC (30 years, 9 months ago) by jtc
Branch: MAIN

Add a manual page.

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.




CVSweb <webmaster@jp.NetBSD.org>