#
6b6e166c |
| 27-Aug-2022 |
dholland <dholland@NetBSD.org> |
PR 56983 Izumi Tsutsui: fix confusing message in test(1) with -DSMALL
|
#
e8177b0f |
| 05-Dec-2021 |
msaitoh <msaitoh@NetBSD.org> |
s/existance/existence/ in comment.
|
#
d551cbb8 |
| 13-Sep-2018 |
kre <kre@NetBSD.org> |
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 po
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.
show more ...
|
#
c38c755b |
| 12-Sep-2018 |
kre <kre@NetBSD.org> |
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
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
show more ...
|
#
03c5b722 |
| 05-Sep-2016 |
sevan <sevan@NetBSD.org> |
Drop main() prototype.
|
#
5358d0b6 |
| 04-May-2013 |
uebayasi <uebayasi@NetBSD.org> |
test(1): Compare timestamp in nsec scale in -nt/-ot.
|
#
85ebf103 |
| 15-Mar-2012 |
joerg <joerg@NetBSD.org> |
Add __printflike attribution to use vprintf and friends with an argument as format string.
|
#
007a7cf0 |
| 29-Aug-2011 |
joerg <joerg@NetBSD.org> |
Use __dead
|
#
2e63684c |
| 10-Sep-2008 |
christos <christos@NetBSD.org> |
bin/39446: Aleksey Cheusov: always produce errors on empty numbers.
|
#
afd857d4 |
| 20-Jun-2008 |
christos <christos@NetBSD.org> |
make getn return long long to support large numbers on all archs.
|
#
9655f5c2 |
| 26-May-2008 |
christos <christos@NetBSD.org> |
PR/38755: murray armfield: /bin posix programs missing setprogname and/or setlocale
|
#
8b0f9554 |
| 15-Dec-2007 |
perry <perry@NetBSD.org> |
convert __attribute__s to applicable cdefs.h macros
|
#
3c769789 |
| 24-Jun-2007 |
christos <christos@NetBSD.org> |
PR/36534: Greg A. Woods: test(1) doesn't do -r and -w quite right Use stat(2) instead of access(2) per POSIX.
|
#
35d9d3fd |
| 24-May-2007 |
christos <christos@NetBSD.org> |
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 NU
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.
show more ...
|
#
06519c05 |
| 28-Mar-2007 |
christos <christos@NetBSD.org> |
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
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.
show more ...
|
#
7eef11b4 |
| 24-Sep-2006 |
hubertf <hubertf@NetBSD.org> |
Revert previous (==) - not worth the trouble.
|
#
f9278bfb |
| 22-Sep-2006 |
hubertf <hubertf@NetBSD.org> |
Allow '==' as synonym to '=', just like our ksh and bash do. This also affects the sh(1) builtin test command.
|
#
8c4dec8f |
| 04-Aug-2006 |
christos <christos@NetBSD.org> |
don't call get/set progname when we are a shell built-in.
|
#
c338573f |
| 04-Aug-2006 |
christos <christos@NetBSD.org> |
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).
|
#
dec70f4a |
| 10-Feb-2005 |
simonb <simonb@NetBSD.org> |
KNF, use NULL instead of (type *)0.
|
#
10610e5a |
| 25-May-2002 |
wiz <wiz@NetBSD.org> |
__STDC__ is always defined on NetBSD.
|
#
d3d81c4e |
| 16-Sep-2001 |
wiz <wiz@NetBSD.org> |
Some KNF fixes by Petri Koistinen and me.
|
#
8cfb973b |
| 30-Jul-2001 |
wiz <wiz@NetBSD.org> |
ANSIfy and slight KNF. Mostly #13594 by Petri Koistinen.
|
#
e2e5d7bd |
| 09-Apr-2000 |
christos <christos@NetBSD.org> |
- Enable test to be a shell builtin - KNF - Fix bug where test without arguments could access invalid memory
|
#
e80c883c |
| 05-Apr-1999 |
kleink <kleink@NetBSD.org> |
Operator precedence consistency; from "Andrew_L. Moore" <alm@SlewSys.Org> in PR bin/7015.
|