ache
72f8a1a2be
strtoq -> strtoll (strtoq is deprecated)
2001-12-25 08:10:34 +00:00
ache
5ac5d748f9
1) Localize (LC_CTYPE)
...
2) Catch "" to 0 conversion for OSes that not catch it in strto*()
(f.e. -stable). It is needed because POSIX agrees with both variants.
2001-12-17 23:14:14 +00:00
ache
656205c800
POSIX strto*() functions MAY return EINVAL, so don't assume that only one
...
errno from them allowed and it is always ERANGE
2001-12-14 23:20:54 +00:00
obrien
3e1e2dd6aa
Default to WARNS=2. Binary builds that cannot handle this must explicitly
...
set WARNS=0.
Reviewed by: mike
2001-12-04 01:57:47 +00:00
knu
be9e1a7f98
Fix style bugs I found, and add a comment.
2001-11-19 20:39:24 +00:00
knu
e04481a28f
Oops sorry, forgot to add a #include.
2001-11-19 20:15:10 +00:00
knu
2e2eb65d40
- Do not reference argv[1] if no argument is given.
...
Reported by: brian
- Call error() instead of errx() if compiled as sh(1) builtin.
2001-11-19 19:57:45 +00:00
knu
2eed238068
Make test(1) a builtin command of our sh(1) for efficiency. The
...
binary size increase is 3,784 bytes (about 0.6%).
I don't drop the printf builtin while I'm here because some /etc/rc.*
scripts seem to use it before mounting /usr where printf(1) resides.
Reviewed by: arch (sheldonh)
Inspired by: NetBSD, ksh
Clued by: ume (on how the printf builtin is used)
2001-11-17 19:10:11 +00:00
dd
139fb986da
The file_descriptor argument to -t isn't optional, so don't mark it up so.
2001-08-31 15:38:53 +00:00
ru
09d142dfd5
mdoc(7) police:
...
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
dd
c49a4e6620
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
dd
ec59248b42
WARNS= -> WARNS?=
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
kris
f8a3fb4fbc
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC After: 1 week
2001-05-20 05:33:53 +00:00
ru
c835e11eed
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 11:39:41 +00:00
ru
7ec1a7afcd
mdoc(7) police: now that Nm macro accepts punctuation characters
...
as argument, unbreak this page by escaping the `[' character.
Noticed by: sheldonh
2000-11-18 14:44:30 +00:00
se
238df8dabc
Add support for 64bit integer comparisons.
2000-07-10 21:29:28 +00:00
kris
4b5eb94748
Remove test for block device.
2000-05-07 08:56:21 +00:00
sheldonh
8b9d0d56e2
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 10:43:09 +00:00
sheldonh
3fa2c380e4
Take into account the fact that "[" may be called with a path,
...
for example "/bin/[".
Reported by: Vlad Skvortsov <vss@ulstu.ru>
Reported by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Message-Id: 99Dec27.111307est.40321@border.alcanet.com.au
1999-12-28 09:34:57 +00:00
peter
3b7c52fb9a
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
green
b5e926864a
Make the comments nice, short-but-sweet XXX format.
...
Submitted by: sheldonh
1999-08-24 06:10:14 +00:00
green
81e46e7930
Make a comment I added a bit nicer.
1999-08-22 22:32:41 +00:00
green
08129df4e3
Finally: fix test -x as completely as possible.
...
Reviewed by: bde
Reworked by: bde
1999-08-20 16:19:26 +00:00
green
b9ece8f9bf
The new test(1) did not use access() correctly. I don't know why, since
...
supposedly it's ksh-derived, and it's not broken in pdksh. I've added
a test for test running as root: if testing for -x, the file must be
mode & 0111 to get "success", rather than just existant.
Reviewed by: chris
1999-08-18 00:18:52 +00:00
sheldonh
b3b6ca965b
Replace our test(1) with NetBSD's pdksh-derived version. The code is
...
significantly easier to read and extend and offers a few new tests.
A few style changes taken from style(9) and OpenBSD, as well as
whitespace cleanups.
This change was discussed on freebsd-committers and freebsd-hackers
and met with approval from at least des, eivind and brian.
PR: 13091
Obtained from: NetBSD
1999-08-16 09:44:09 +00:00
chris
6c1daaeebd
Minor style fix - change 'if(!*v)' to 'if (!*v)'
1999-08-14 05:38:04 +00:00
kris
935bd87c22
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00
jkoshy
7e5b5041ac
Add cross-references to test(1) and expr(1) respectively.
...
PR: docs/9111
Submitted by: Josh Gilliam <josh@quick.net>
1998-12-18 03:16:47 +00:00
cracauer
51f504cdb4
Add -S flag to test for sockets.
...
PR: bin/7507
Reviewed by: I tested the patch
Submitted by: Stefan `Sec` Zehl sec@42.org
1998-09-07 16:59:05 +00:00
charnier
116394efc6
Correct use of .Nm. Add rcsid.
1998-05-18 06:51:59 +00:00
eivind
c4ec46a145
Remove simultaneous include of <sys/param.h> and <sys/types.h>.
...
Reorder includes to be alphabetical some places since I already was in
here.
1997-12-10 22:18:54 +00:00
charnier
4e0c9ceb80
Typo fix.
1997-06-02 06:40:08 +00:00
peter
34fd560164
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
jkh
9c0cd3f9df
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
7d81d73be3
add some string examples, eg. test "" -o ""
1996-12-28 13:31:29 +00:00
steve
ba6ff4e22b
Fix handling of -o and -a operators in the 3 argument case.
...
Submitted by: Tom Rush <tarush@mindspring.com>
1996-12-25 00:08:10 +00:00
steve
d977027356
-Wall cleaning.
1996-12-14 06:16:51 +00:00
wosch
e99625b29c
sync copyright with /usr/share/examples/etc/bsd-style-copyright
1996-08-27 20:04:45 +00:00
wosch
69fdab67e4
Add a better TEST script. I was surprised how much can be wrong
...
with program test(1) or builtin test(1).
1996-06-19 00:44:44 +00:00
joerg
693dd454a4
err() --> errx() for non-errno related failures.
1996-03-11 11:01:03 +00:00
ache
b7d0978d02
Fix -h option:
...
sense symlink even it is unresolved
1995-10-28 11:54:42 +00:00
rgrimes
e6999472c1
Remove trailing whitespace.
...
Reviewed by: phk
1995-05-30 00:07:29 +00:00
joerg
6330608063
You will find enclosed some changes to make gcc -Wall more happy in
...
/usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
1995-03-19 13:29:28 +00:00
ache
ee45be2c75
Fix group permissions check for group list size > 1
...
Pointed by Bruce
1994-11-05 20:48:06 +00:00
ache
4ea03ef9c5
Fix root -w case according to manpage (-x & -r cases already accords)
...
Pointed by Bruce.
1994-11-05 20:24:49 +00:00
ache
22e59a3883
Cosmetique, missing tab/spaces after patch
1994-11-05 17:31:23 +00:00
ache
bdceb159d6
More complex implementation of previos superuser fix
...
because rw and x bit treats differently infact
1994-11-05 17:28:03 +00:00
ache
154e0e9667
test produce wrong results for superuser, i.e. tells
...
that file is unreadable when it is readable infact.
1994-11-05 17:07:14 +00:00
dg
00eb2a4dc0
Added $Id$
1994-09-24 02:59:15 +00:00
csgr
16fa826a63
Make get_int() think that "" (null) has the integer value 0.
...
(Which is the same behaviour as in 1.x)
The install blows up without this.
Reviewed by: rgrimes
1994-09-11 21:30:09 +00:00