sheldonh
506aa9c1b6
Revert to using .Xr for builtins. The cross-references don't work now,
...
but that doesn't mean that they will never work.
Requested by: mpp, rgrimes
1999-08-31 12:44:52 +00:00
sheldonh
b337d66e78
Clean-up:
...
Fix grammar and spelling nits.
Use .Dq and .Qq where appropriate.
Divorce trailing punctuation from quoted elements.
Use .Dq instead of .Xr for builtins.
Remove trailing whitespace and blank lines.
PR: 13340
1999-08-30 10:13:04 +00:00
bde
7e1d2c3043
Yet another previously forgotten merge from Lite2. (Describe
...
`opaque', fix reversed description of `nodump', and don't use
`nodump' as an example of adding a `no' prefix since the double
negative would be confusing (it's still confusing -- the implicitly
documented `nonodump' flag doesn't exist).)
1999-08-30 03:40:26 +00:00
mharo
0e47c5f37a
fix rm -r
...
Submitted by: John Hay -- John.Hay@mikom.csir.co.za
1999-08-29 19:57:03 +00:00
mharo
92582195da
add verbose flag
1999-08-29 08:21:16 +00:00
mharo
5e14615656
brucify and move printf() to catch cases of special files
1999-08-29 07:58:19 +00:00
mharo
2e0328a8ba
add verbose flag
...
exit(1) --> exit(EX_USAGE)
Reviewed by: obrien
1999-08-29 02:20:26 +00:00
mpp
e9a5cbf430
Fix typo in previous commit that documented the -v option.
1999-08-28 21:38:36 +00:00
mharo
98ee646b7c
add verbose flag
...
Reviewed by: obrien
1999-08-28 20:46:00 +00:00
green
c4aced0891
Relax things a bit. Not having FIODTYPE will be a warning for now.
...
Pointy hat: green
Pointed out by: peter
1999-08-28 03:37:38 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
peter
66312e4a8d
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
green
1b913741fc
Use FIODTYPE to unbogosify much of the file type checking in dd.
1999-08-27 16:36:46 +00:00
sheldonh
ff03d3b520
Don't suggest sysctl(8) as a means for discovering what filesystem types
...
are available; suggest lsvfs(1) instead.
Reported by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
1999-08-26 16:47:03 +00:00
tg
da827dcea3
Make the behaviour of `read -e', ie. treating backslashes as special,
...
the default. Add -r option for the read builtin to reverse this.
PR: 13274
Reviewed by: cpiazza, hoek, sheldonh
1999-08-26 08:16:27 +00:00
mharo
5f9fd788f5
Add a verbose mode to show what files are being copied.
...
Idea taken from obrien.
Reviewed by: obrien
1999-08-26 02:44:56 +00:00
jkh
03b6089d20
Remove obsolete BUGS section which describes something which stopped
...
being relevant when we ripped out the BSD/VAX code.
Submitted by: Guy Harris <gharris@flashcom.net>
1999-08-25 14:38:58 +00:00
chris
0fd3ba1d5d
Sort cross-references. Move mount(8) down the list where it belongs, in
...
particular.
1999-08-25 08:45:31 +00:00
green
651feb3ee0
Make the comments nice, short-but-sweet XXX format.
...
Submitted by: sheldonh
1999-08-24 06:10:14 +00:00
chris
f92dd3f904
Backed out my -n change to imply -l by request of sheldonh.
1999-08-23 05:39:40 +00:00
chris
4a1cbe0182
Make -n flag compliant to the Single Unix Specification.
...
To quote their ls(1) specification:
-n
The same as -l, except that the owner's UID and GID numbers are
written, rather than the associated character strings.
Reviewed by: green
1999-08-23 01:17:58 +00:00
green
7b8ec14379
Make a comment I added a bit nicer.
1999-08-22 22:32:41 +00:00
green
124c84f339
Finally: fix test -x as completely as possible.
...
Reviewed by: bde
Reworked by: bde
1999-08-20 16:19:26 +00:00
sheldonh
7c5ab4e28d
Take integer rounding into account in the buffer size approximation
...
macro. So now it's (1 +) for the sign and (+ 1) for rounding.
Reported by: bde
1999-08-19 13:04:08 +00:00
sheldonh
c57b7dbc2a
Style issues in previous commit:
...
Use an upward approximation of the number of characters required
for decimal representations of uid_t, gid_t and u_quad_t, intead
of arbitrary values that may not be safe in the future.
Fix disordering.
Requested by: bde
1999-08-19 11:36:12 +00:00
green
74ed588ff9
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
ru
466108918b
Describe proper signals behavior rather than just removing it.
...
Remove obsoleted reference to alarm(3).
Submitted by: bde
1999-08-16 12:36:45 +00:00
sheldonh
90a5109c16
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
91b9b5506d
Bad reference of mount(1) changed to mount(8).
1999-08-14 06:26:14 +00:00
chris
855aedd7e7
Minor style fix - change 'if(!*v)' to 'if (!*v)'
1999-08-14 05:38:04 +00:00
ru
a790057542
There is no special handling for SIGALRM as
...
sleep(3) is implemented using nanosleep(2).
1999-08-09 17:31:30 +00:00
chris
5bc66261ca
Document -f flag:
...
-f Do not display a diagnostic message if chmod could not modify the
mode for file.
1999-08-08 21:08:05 +00:00
sheldonh
744826805a
Add -n option to print numeric user and group IDs instead of names
...
in a long (-l) listing.
MFC-jockies should make sure that bde's concerns regarding the number
of digits required to represent a uid_t and the use of snprintf
on the associated PR have been addressed before going wild.
PR: 12866
Reported by: Philip Kizer <pckizer@nostrum.com>
Obtained from: NetBSD
1999-08-02 14:55:58 +00:00
kris
9fd8ecafa7
Correct some style issues in my previous commit.
...
Submitted by: bde
1999-07-22 14:26:21 +00:00
sheldonh
3f0530abee
Fix handling of the cd command inside evaluations. It was changing PWD,
...
which it should not do.
PR: 12578
Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Submitted by: Niall Smart <niall@pobox.com>
1999-07-19 11:00:33 +00:00
green
ac63841b82
Implement seekability for disk devices (not just regular files).
...
Also, fix pos_out() to do the same checks pos_in() did.
Done for: jdp, luigi, the good of the world
1999-07-13 18:44:56 +00:00
kris
aed1b76551
Add -W and fix the warning due to missing struct initializer
1999-07-10 05:46:44 +00:00
bde
301e8ec7e2
Improved error handling in rev.1.18: don't ignore failure of execve().
...
Fixed some style bugs in rev.1.18.
1999-07-04 15:42:04 +00:00
kris
eb9a61dc2f
Correct reference to the obsolete vadvise() to madvise() (with appropriate
...
arguments)
PR: 11586
Submitted by: David Gilbert <dgilbert@velocet.ca>
Reviewed by: Doug Rabson
1999-06-30 11:50:09 +00:00
cracauer
93ee80e2fd
Don't continue if parsing failed when -f is in use. Exit with nonzero value.
1999-06-25 09:04:48 +00:00
kris
3f0be11066
Undo some of the reversions from previous revisions, and attempt to
...
minimize diffs with {Net,Open}BSD
Hinted-More-Or-Less-By: bde
1999-06-21 13:23:23 +00:00
green
788bc0cf60
This is the second round of dd(1) changes. Some changes made/reversed by
...
request of Bruce. More changes may follow later. 'g' multiplier has
been added (i.e. dd seek=5g if=bigfile.) Some minor corrections were made
as well.
Noticed by: bde
1999-06-20 14:58:55 +00:00
green
90290405cf
Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t,
...
off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY
big amounts of data.
1999-06-19 19:49:35 +00:00
kris
bb3080b84d
Changes from OpenBSD:
...
* Better usage() - correct syntax, display available commands
instead of examples
* Accept command abbreviations
* sprintf -> snprintf (for paranoia)
* manpage capitalisation tweak
Obtained from: OpenBSD
1999-06-07 13:53:57 +00:00
kris
74171e7d70
Use .Dq instead of ``'' in manpage
...
Use optimal blocksize for rm -P, instead of always using 8192-byte blocks
to overwrite the file.
Obtained from: OpenBSD
1999-05-28 12:47:31 +00:00
imp
3aec1640df
getopt(3) returns -1 not EOF.
1999-05-23 23:24:26 +00:00
jmz
b5e886e477
Chflags was clearing all flags supplied on the command line after a
...
clearing flag like dump or noschg, etc.
PR: bin/10071
Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
1999-05-21 17:04:13 +00:00
jmg
80ee25f437
the month and three days are up for -hackers and the 24hrs for -committers.
...
add a -j flag that tells date not to try to set the date. This allows you
to use date as a userland interface to strptime.
example:
TZ=GMT date -j -f "%a, %d %b %Y %T %Z" "Sun, 08 Nov 1998 02:22:20 GMT" +%s
which is the standard format for Last-modified headers in HTTP requests.
only one to respond: eivind
1999-05-14 00:28:41 +00:00
kris
a3fe4dbbe8
Grammatical fixes.
...
Obtained from: OpenBSD
1999-05-12 13:48:47 +00:00
kris
713dd62834
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00