The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.46 / (download) - annotate - [select for diffs], Thu Jun 11 13:08:07 2020 UTC (5 months, 2 weeks ago) by kamil
Branch: MAIN
CVS Tags: HEAD
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Fix typo

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Tue Apr 21 19:37:32 2020 UTC (7 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.45.2.1: +0 -0 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Ooops, restore accidently removed files from merge mishap

Revision 1.45.2.1, Tue Apr 21 18:41:04 2020 UTC (7 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.45: +2 -2 lines
FILE REMOVED

Sync with HEAD

Revision 1.39.12.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:32:56 2018 UTC (2 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.39.12.1: +17 -7 lines
Diff to previous 1.39.12.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 27 17:23:36 2018 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Branch point for: phil-wifi
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Add a missing check to handle correctly 0 * 0 in expr(1)

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 27 17:12:49 2018 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
Changes since 1.43: +17 -7 lines
Diff to previous 1.43 (colored)

Improve the * operator handling in expr(1)

Fixes overflow detection in expressions INT * -UINT.

Detected with libFuzzer & UBSan.

Revision 1.39.12.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:04 2018 UTC (2 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.39: +41 -41 lines
Diff to previous 1.39 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 14 02:46:56 2018 UTC (2 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored)

remove notreached

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 14 02:44:16 2018 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

return to caller instead of exit(2)

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jun 13 17:35:15 2018 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

Detect properly overflow in expr(1) for 0 + INT

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jun 12 18:12:18 2018 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
Changes since 1.39: +40 -39 lines
Diff to previous 1.39 (colored)

Rework perform_arith_op() in expr(1) to omit Undefined Behavior

The current implementation of operations - + * / % could cause Undefined
Behavior and in narrow cases (INT64_MIN / -1 and INT64_MIN % -1) SIGFPE
and crash duping core.

Detected with MKSANITIZER enabled for the Undefined Behavior variation:
# eval expr '4611686018427387904 + 4611686018427387904'
/public/src.git/bin/expr/expr.y:315:12: runtime error: signed integer overflow: 4611686018427387904 + 4611686018427387904 cannot be represented in type 'long'

All bin/t_expr ATF tests pass now in a sanitized userland.

Sponsored by <The NetBSD Foundation>

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 5 01:00:07 2016 UTC (4 years, 2 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, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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
Branch point for: pgoyette-compat
Changes since 1.38: +2 -4 lines
Diff to previous 1.38 (colored)

Drop main() prototype.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:01:36 2012 UTC (8 years, 7 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with head

Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 15 02:02:20 2012 UTC (8 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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.37: +3 -3 lines
Diff to previous 1.37 (colored)

Add __printflike attribution to use vprintf and friends with an argument
as format string.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 25 01:11:47 2011 UTC (9 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: 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
Branch point for: yamt-pagecache
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Mark yyerror as dead.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 20 14:22:37 2009 UTC (11 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.35: +8 -14 lines
Diff to previous 1.35 (colored)

Revert for now, pending discussion of how expr should behave in the case
of pre-POSIX expressions.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 20 13:04:55 2009 UTC (11 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.34: +15 -9 lines
Diff to previous 1.34 (colored)

SUS says that expr must support "--" to prevent interpretation of
negative numbers as options.

Revision 1.33.18.1 / (download) - annotate - [select for diffs], Sun May 18 12:28:44 2008 UTC (12 years, 6 months ago) by yamt
Branch: yamt-pf42
Changes since 1.33: +14 -20 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 30 13:39:13 2008 UTC (12 years, 7 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-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, hpcarm-cleanup-nbase
Changes since 1.33: +14 -20 lines
Diff to previous 1.33 (colored)

Normalize TNF license, move to 2 clause.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 17 14:43:11 2006 UTC (14 years, 8 months ago) by rumble
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, 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.32: +10 -2 lines
Diff to previous 1.32 (colored)

Handle asprintf failing to allocate.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 1 15:21:52 2005 UTC (15 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

appease gcc -Wuninitialized

Revision 1.31 / (download) - annotate - [select for diffs], Tue Apr 20 19:44:51 2004 UTC (16 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: 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
Changes since 1.30: +16 -3 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 20 08:45:05 2004 UTC (16 years, 8 months ago) by jdolecek
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.29: +3 -3 lines
Diff to previous 1.29 (colored)

explicitly use REG_BASIC when calling regcomp(3), instead of 0

Revision 1.29 / (download) - annotate - [select for diffs], Fri Feb 14 16:17:30 2003 UTC (17 years, 9 months ago) by grant
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

'NetBSD.org'

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 16 13:42:10 2001 UTC (19 years, 2 months ago) by wiz
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, fvdl_fs64_base
Changes since 1.27: +7 -4 lines
Diff to previous 1.27 (colored)

Use {g,s}etprogname, and some other KNF stuff. Patch by Petri Koistinen.

Revision 1.27 / (download) - annotate - [select for diffs], Sun May 6 06:20:39 2001 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.26: +38 -27 lines
Diff to previous 1.26 (colored)

Various cleanups/fixes.
Change the add/subtract overflow checks to use an unsigned to do the op
and then cast back into the signed var to check the signs.

Make multiply shortcut on either right or left being 0.
Make multiply's overflow test not fail on simple cases like 1 * -1
Make the multiple overflow test pass all the regress tests.

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 5 06:57:57 2001 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.25: +117 -99 lines
Diff to previous 1.25 (colored)

Various changes to fix bugs in PR bin/12838.

Make sure all precendence is spelled out correctly (comparison does not
have the same level as the arithmetic operators..)
Break the arithemtic operators into 2 classes (+- are lower than */%)
Restructure the arithmetic code into a function either class above can call.
Finally, add a whole suite of regression tests (checked in separately) which
the previous code failed on 3 of them.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 25 02:33:09 2001 UTC (19 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Spell occurred correctly.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 4 19:51:14 2001 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

remove redundant declaration of yyparse

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 30 14:55:02 2000 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.22: +31 -14 lines
Diff to previous 1.22 (colored)

add a hack to properly handle '--' as first argument -
it's ignored if it would cause syntax error, otherwise treated as common
string; this is so that both 'expr -- : .' and 'expr -- foo : .' works
This addresses standards/11230 by Ben Harris.

while here, make all global variables but main() static, use const more

Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 29 17:16:02 2000 UTC (20 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

The "&" operator has a higer precedence than "|".

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 27 21:40:02 2000 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

also credit J.T. Conklin in copyright message

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 26 23:10:21 2000 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.19: +5 -3 lines
Diff to previous 1.19 (colored)

fix operator precedence - | or & have lower priority than
arithmetic operations, compare, or :
This should fix bin/11318 by Love <lha@stacken.kth.se>

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 29 17:49:21 2000 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

in regexp handling code, fix the format passed to asprintf() to be
actually in intended form - use "%.*s" and not incorrect "%*s"

Bug found by Launey Thomas <ljt@alum.mit.edu> and reported in private e-mail.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Sep 21 20:32:24 2000 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.17: +6 -5 lines
Diff to previous 1.17 (colored)

Fix bug in regexp handling, caused not quite complete conversion
from old expr.c. This fixes PR # 11060.

While here, convert the code to use asprintf() instead of strdup()
followed by truncating of new string and move definition of errstr
to block where it's used.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 19 17:20:00 2000 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.16: +330 -475 lines
Diff to previous 1.16 (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.16, Sat Jul 16 00:17:15 1994 UTC (26 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +0 -0 lines
FILE REMOVED

Clean up deleted files.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Jul 10 23:51:34 1994 UTC (26 years, 4 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: 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
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

fix regexp problems.  from trunk.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 10 23:51:11 1994 UTC (26 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

don't forget a cast, and thereby fix the regexp problems on big-endian machines

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 16 23:08:49 1993 UTC (27 years ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

Fix insignificant memory leak.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 4 21:57:27 1993 UTC (27 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.12: +3 -9 lines
Diff to previous 1.12 (colored)

Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other
expr implementations.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 14 22:45:57 1993 UTC (27 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.11: +8 -9 lines
Diff to previous 1.11 (colored)

Fix grammar to eliminate support for unary minus expressions -- they
weren't supported, they aren't standard, and they caused expr to dump
core.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 17 16:01:23 1993 UTC (27 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.10: +23 -28 lines
Diff to previous 1.10 (colored)

Use err() routine for error messages.
If string does not match \( \) subexpression, return a null string.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 16 23:20:22 1993 UTC (27 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

expr is supposed to do string comparisons using the locale specific
collation sequence, so use strcoll instead of strcmp.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 20 01:10:55 1993 UTC (27 years, 4 months ago) by jtc
Branch: MAIN
Changes since 1.8: +10 -6 lines
Diff to previous 1.8 (colored)

Now truely POSIX 1003.2 (D11.2) compliant.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 20 00:52:57 1993 UTC (27 years, 4 months ago) by jtc
Branch: MAIN
Changes since 1.7: +1 -38 lines
Diff to previous 1.7 (colored)

Don't coerce strings to int in comparisons.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 20 00:29:41 1993 UTC (27 years, 4 months ago) by jtc
Branch: MAIN
Changes since 1.6: +5 -7 lines
Diff to previous 1.6 (colored)

integer arguments were not coerced to strings for the `:' operator.
bad things: core dumps, etc. will happen if integer values make it
up the parse tree.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 14 19:59:07 1993 UTC (27 years, 5 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.5: +36 -45 lines
Diff to previous 1.5 (colored)

Updated to POSIX regular expression routines.
(Previous checkin was aborted by stray ^C)

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 5 22:25:44 1993 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.4: +20 -20 lines
Diff to previous 1.4 (colored)

update for latest version of patches from jtconklin@kaleida.com

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 23 20:19:35 1993 UTC (27 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.3: +313 -93 lines
Diff to previous 1.3 (colored)

added J.T. Conklin's changes to get parens working fine, etc.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:25:46 1993 UTC (27 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (27 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (27 years, 8 months ago) by cgd
Branch: WFJ-920714
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (27 years, 8 months ago) by cgd
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.




CVSweb <webmaster@jp.NetBSD.org>