CVS log for src/bin/test/test.c
Up to [cvs.NetBSD.org] / src / bin / test
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 29 16:04:26 2022 UTC (2 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +3 -3
lines
Pull up following revision(s) (requested by dholland in ticket #1507):
bin/test/test.c: revision 1.45
PR 56983 Izumi Tsutsui: fix confusing message in test(1) with -DSMALL
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Aug 27 21:18:39 2022 UTC (2 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
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
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3
lines
PR 56983 Izumi Tsutsui: fix confusing message in test(1) with -DSMALL
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Dec 5 04:42:55 2021 UTC (3 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
s/existance/existence/ in comment.
Revision 1.41.14.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 19:37:35 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.41.14.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.14.2: +2 -2
lines
Ooops, restore accidently removed files from merge mishap
Revision 1.41.14.2
Tue Apr 21 18:41:08 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.41.14.1: +2 -2
lines
Sync with HEAD
Revision 1.41.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:41:04 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +208 -21
lines
Sync with HEAD
Revision 1.41.12.1: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:44:22 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +208 -21
lines
Ssync with HEAD
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Sep 13 22:00:58 2018 UTC (6 years, 2 months ago) by kre
Branches: MAIN
CVS tags: 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,
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,
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: netbsd-9
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +38 -6
lines
Allow SMALL (and TINY) builds of test (for SMALL/TINY builds of sh)
which support only the defined modes of operation of test, to allow
the version of sh on small install media be kept as small as possible.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Sep 12 23:33:31 2018 UTC (6 years, 2 months ago) by kre
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +174 -19
lines
PR standards/34646
Make test(1) always use the POSIX "number of args" evaluation rules
when they apply.
Only fall back to the old expression evaluation when there are more
than 4 args, or when the args given cannot work as a test expression
using the POSIX rules. That is when the result is unspecified.
Also fix old bug where a string of whitespace is considered to be a
valid number (at least one digit is needed amongst it somewhere...)
XXX pullup -8
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Sep 5 01:00:07 2016 UTC (8 years, 3 months ago) by sevan
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-compat-base,
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,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
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: phil-wifi,
pgoyette-compat
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -4
lines
Drop main() prototype.
Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:26:23 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.1: +4 -4
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:26:13 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +4 -4
lines
resync from head
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat May 4 06:26:44 2013 UTC (11 years, 7 months ago) by uebayasi
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -4
lines
test(1): Compare timestamp in nsec scale in -nt/-ot.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:01:38 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
sync with head
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Mar 15 02:02:21 2012 UTC (12 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Aug 29 14:51:19 2011 UTC (13 years, 3 months ago) by joerg
Branches: 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
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Use __dead
Revision 1.34.6.2: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:29:49 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.34.6.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.6.1: +3 -3
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Sep 10 19:00:51 2008 UTC (16 years, 3 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
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-premerge-20101231,
matt-mips64-base2,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
bin/39446: Aleksey Cheusov: always produce errors on empty numbers.
Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:26:44 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +11 -8
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Jun 20 23:29:36 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +9 -8
lines
make getn return long long to support large numbers on all archs.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:02:57 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -2
lines
sync with head
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon May 26 14:21:08 2008 UTC (16 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -2
lines
PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale
Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:20:06 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +4 -4
lines
sync with HEAD
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Dec 15 19:44:38 2007 UTC (17 years ago) by perry
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base2,
yamt-pf42-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: yamt-pf42,
wrstuden-revivesa
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4
lines
convert __attribute__s to applicable cdefs.h macros
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jun 24 18:54:58 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: matt-armv6
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +182 -6
lines
PR/36534: Greg A. Woods: test(1) doesn't do -r and -w quite right
Use stat(2) instead of access(2) per POSIX.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu May 24 18:47:08 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -2
lines
Make sure we don't run over the end of the argument array while scanning
for input. This can happen if we have a unary not without an argument. When
we scan for the argument, we are already at the NULL element of the argument
array. Then when we scan ahead for a -a or -o, we end up testing the next
element after the NULL.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Mar 28 01:47:25 2007 UTC (17 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +104 -57
lines
PR/36092: B K: algorithmic inefficiency in bin/test/test.c:t_lex
test(1) scans for "operators" linearly in an array using strcmp() to
find a match. Since the list of "operators" is fixed, split them
into one and two character ones, and ones that start with a `-' and
ones they don't. This way we can optimize the compare function to
just check for one or two characters. Sort and use bsearch(3). We
could have used a single sorted array and bsearch(3), to save some
complexity, but I decided to be a bit fancier.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Sep 24 13:24:08 2006 UTC (18 years, 2 months ago) by hubertf
Branches: MAIN
CVS tags: 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
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -3
lines
Revert previous (==) - not worth the trouble.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Sep 22 22:15:24 2006 UTC (18 years, 2 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4
lines
Allow '==' as synonym to '=', just like our ksh and bash do.
This also affects the sh(1) builtin test command.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Aug 4 19:07:55 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +9 -3
lines
don't call get/set progname when we are a shell built-in.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Aug 4 14:38:58 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
use getprogname() instead of argv[0], because some programs that execv, pass
the full path in argv[0] instead of just the basename. In reality, those
programs should be fixed (hello gdb for example).
Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Feb 10 06:56:55 2005 UTC (19 years, 10 months ago) by simonb
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +19 -17
lines
KNF, use NULL instead of (type *)0.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat May 25 23:12:16 2002 UTC (22 years, 6 months ago) by wiz
Branches: 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,
fvdl_fs64_base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -17
lines
__STDC__ is always defined on NetBSD.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Sep 16 19:03:26 2001 UTC (23 years, 2 months ago) by wiz
Branches: 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
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +12 -10
lines
Some KNF fixes by Petri Koistinen and me.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 30 10:17:41 2001 UTC (23 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +38 -54
lines
ANSIfy and slight KNF. Mostly #13594 by Petri Koistinen.
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 3 14:27:37 2000 UTC (24 years, 6 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +57 -11
lines
Pull up revision 1.22 (requested by he):
Enable test as a shell builtin. Fixes PR#9847.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 3 14:26:33 2000 UTC (24 years, 6 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +32 -36
lines
Pull up revision 1.21 (requested by he):
Fix operator precedence consistency. Fixes PR#7015.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Apr 9 23:24:59 2000 UTC (24 years, 8 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
minoura-xpg4dl-base,
minoura-xpg4dl
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +57 -11
lines
- Enable test to be a shell builtin
- KNF
- Fix bug where test without arguments could access invalid memory
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Apr 5 09:48:38 1999 UTC (25 years, 8 months ago) by kleink
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +32 -36
lines
Operator precedence consistency; from "Andrew_L. Moore" <alm@SlewSys.Org>
in PR bin/7015.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Nov 4 20:12:12 1998 UTC (26 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
char -> unsigned char
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jul 28 11:41:59 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -4
lines
Be more retentive about use of NOTREACHED and noreturn.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Oct 19 17:54:18 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +15 -47
lines
Use S_IS*(), not S_IF*.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 20 21:36:26 1997 UTC (27 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +27 -21
lines
Fix compiler warnings.
Add WARNS=1
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jan 9 16:44:57 1997 UTC (27 years, 11 months ago) by tls
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5
lines
kill use of register
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Mar 21 07:04:06 1995 UTC (29 years, 8 months ago) by cgd
Branches: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1
lines
clean up Id's, and such. reorganize man page slight to match lite's org.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jul 7 19:08:11 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +68 -38
lines
from jtc: insure that 3 and 4 argument special cases work properly.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 7 19:04:38 1994 UTC (30 years, 5 months ago) by cgd
Branches: 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
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +68 -38
lines
from jtc: insure that 3 and 4 argument special cases work properly.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jun 30 05:12:38 1994 UTC (30 years, 5 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +381 -503
lines
Replaced test with simpler, more feature rich, version derived from pdksh.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jun 29 22:10:16 1994 UTC (30 years, 5 months ago) by jtc
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -7
lines
Removed code that checked if arg was a unary operator when test is called
with only one argument. It's not a syntax error --- it's a special case.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Apr 10 05:37:11 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -1
lines
fix syntax error when only have one arg. from Jarle Greipsland
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 19 06:29:04 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -1
lines
add support for 'test -h' a la SunOS
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Oct 26 01:11:28 1993 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
fix from Andrew Moore <alm@netcom.com> to fix test's handling of
(non-negated) "-a" and "-o".
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Sep 23 22:49:40 1993 UTC (31 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
From alm:
Added and/or operator test to POSIX special case processing, so now:
$ test ! "abc" -o "abc"
evaluates to true.
The correct fix is probably to yank the superfluous special case code, but
I don't have time to verify the correctness of the result.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Sep 23 22:47:45 1993 UTC (31 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1
lines
Put back RCS identifier.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Sep 15 04:35:53 1993 UTC (31 years, 3 months ago) by alm
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +18 -23
lines
test "0 " -eq 0 now evaluates to true.
It also does range checking. These override J.T.'s patches.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Sep 8 00:46:55 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +14 -5
lines
Ignore leading whitespace and handle `-' and `+' for operands of integer
comparisions.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Sep 8 00:10:06 1993 UTC (31 years, 3 months ago) by alm
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
/bin/test " 5" -eq 5 now evaluates to true, rather than return an error.
/bin/test "5 a" -eq 5 still correclty returns an error.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:57:26 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1
lines
Add RCS identifiers.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 15 06:22:41 1993 UTC (31 years, 6 months ago) by cgd
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1
lines
get the [ ! "" ] case right.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Apr 26 23:30:52 1993 UTC (31 years, 7 months ago) by glass
Branches: MAIN
new 'test' from ftp.uu.net:/systems/unix/bsd-sources, got rid of GNU thing
CVSweb <webmaster@jp.NetBSD.org>