Commit Graph

5502 Commits

Author SHA1 Message Date
Johan Karlsson
16429f2c6c Add my DoB
Approved by:    sheldonh (mentor)
2002-07-01 16:02:05 +00:00
Tim J. Robbins
99a84ce108 Declare environ as char **environ like in environ(7), not char *environ[].
This corrects a problem whereby xargs could not walk the environment table
to count the amount of space it used, and treated it as if it were empty.
This problem was introduced in rev 1.15.

MFC after:	2 days
2002-07-01 03:21:05 +00:00
Juli Mallett
2ea0fdfb65 Nuke src/usr.bin/help in favor of projects/sccs/help (repo copied). 2002-06-30 23:31:21 +00:00
Juli Mallett
c948c0582c Minor cleanup: ANSI C function declarations, use argc after getopt(3) to check
for remaining arguments, rather than checking for *argv being a boolean truth.
Instead of using an empty case to check for -f- to mean "read stdin", and have
stdin reopned otherwise, use a FILE* for the mbox, and assign it to stdin when
we mean to use stdin, otherwise fopen(3).  Kill `register' qualifier.
2002-06-30 17:36:54 +00:00
Juli Mallett
549e1e057c Make it possible to have this (basename(1)) perform basename(3) on multiple
files.  The traditional behaviour, 'basename string .suffix', is preserved,
however a suffix may now also be specified via a getopt(3) option, -s, such
that if it is specified in that way, all string arguments follow.  There is
also a new flag, -a, which allows a user to say "yes, please basename(3) on
all arguments".  Update manual to reflect this unobtrusively.

Reviewed by:	obrien
2002-06-30 13:40:35 +00:00
David E. O'Brien
64567a4162 Consistently wrap CSRG SCM ID.
Requested by:	bde
2002-06-30 09:24:25 +00:00
Tim J. Robbins
721da592c4 Handle relative and absolute pathnames (anything with a `/' in it) in the same
way as execve(2), and the old perl which(1).

PR:		35718
2002-06-30 06:02:39 +00:00
Tim J. Robbins
8c821782f8 Treat empty PATH elements as "." for tradition and consistency with the
old Perl which(1) script.

PR:		35719
2002-06-30 05:48:50 +00:00
David E. O'Brien
77c8bf7cae Consistently use FBSDID 2002-06-30 05:34:21 +00:00
David E. O'Brien
e026a48c34 Consistently use FBSDID 2002-06-30 05:25:07 +00:00
Juli Mallett
5cdd3a031f Untie help and sccs from the build. sccs has been repo copied into
projects/sccs/sccs/, to accompany projects/sccs/sccscmds, and help will
be dying shortly.

These programs will not be a part of 5.0-RELEASE, at least not in their
current form.  They'll either end up in src/contrib or ports.

Submitted by:	obrien
2002-06-29 22:45:44 +00:00
Tim J. Robbins
e12c2e18a5 Avoid truncating filenames with snprintf(). 2002-06-29 05:31:26 +00:00
Andrey A. Chernov
55f0377c44 Simplify TERM handling since now libutil not overwrites existen TERM for "term" 2002-06-28 22:56:31 +00:00
Tim J. Robbins
4633a1ab99 Refer to utilities, not commands, for consistency with env(1), nice(1), etc. 2002-06-28 09:34:46 +00:00
Tim J. Robbins
8b4f995acc Document the fairly obvious effects of the PATH environment variable. 2002-06-28 09:31:03 +00:00
Tim J. Robbins
6ec9d03768 Discourage use of env(1)'s "-" flag by moving its description to the
Compatibility section of the manual page.
2002-06-28 09:23:39 +00:00
Andrey A. Chernov
79a20d3b58 Overwrite "term" from login.conf(5) for any known TERM 2002-06-28 04:59:39 +00:00
Matthew Dillon
df151480c8 Add my entry to the mojo file. 2002-06-28 04:26:07 +00:00
CHOI Junho
d3900e1fed add my entry. 2002-06-28 01:42:45 +00:00
Juli Mallett
21e21aad32 Increment morefiles, balance braces. This should really be using getopt(3). 2002-06-27 21:11:19 +00:00
Juli Mallett
f63eec78e4 Instead of not using argc and doing other great evil, check for no arguments
in main() and print usage, or if there are too many arguments, handle that
there, too.
2002-06-27 21:01:32 +00:00
Juli Mallett
10b9342105 Update my name here, pointed out by grep(1). 2002-06-27 19:05:47 +00:00
Tim J. Robbins
126b0a6341 Indicate that the semicolon that terminates argument lists should be in
its own argument for -ok and -okdir.
2002-06-26 08:03:54 +00:00
Tim J. Robbins
cc81b6b0fb Make it more obvious that the semicolon that terminates -exec and -execdir
argument lists must be in an argument by itself, not on the end of the
previous one.
2002-06-26 07:55:18 +00:00
Matthew Dillon
552116c927 Make limits(1) aware of the new vmemoryuse resource limit.
Submitted by:	sheldonh
2002-06-26 03:43:25 +00:00
Sheldon Hearn
4ece3f34aa Fix mdoc nits in preparation for RLIMIT_VMEM support:
* add missing Ar macro for one instance of limitflags

* fix indentation problem (not perfect, but then this is one _very_
  awkward manpage mark up properly)
2002-06-26 01:40:15 +00:00
Matthew Dillon
b22ac97b33 This is Alexander Kabaev's patch to solve the signal problem with su
(see 'zsh exits upon ^C' thread).  This may be temporary be he's been
running it for a year without incident so we should be golden with it.

Approved by:	des
2002-06-26 00:42:40 +00:00
Matthew Dillon
6592cfde7a Backout 1.51 on DES's request.
Approved by:	des
2002-06-26 00:38:39 +00:00
Tim J. Robbins
42676968c6 Sort sections, and refer to sed as a utility, not a function. 2002-06-25 08:36:19 +00:00
Hye-Shik Chang
2a5454cd3d Add ICBM coordinates and birthday reminder
Reviewed by: cjh (mentor)
Approved by: cjh (mentor)
2002-06-25 08:15:35 +00:00
Mike Heffner
0077673e56 Add support for the 'flipr' option per IEEE 1003.1-2001. 2002-06-25 05:34:27 +00:00
Mike Heffner
7d409b3221 Use strcasestr() instead of reimplementing it. 2002-06-25 05:28:32 +00:00
Mike Heffner
27c7d5ffd1 Make the 'searchheaders' option behave how it was supposed to. If
enabled, the string '/to:y' will match strings in the To, Cc, and Bcc
header fields. Whereas, '/To:y' will match only the To field. Edit the
manpage and a code comment to indicate the correct behavior.
2002-06-25 05:24:30 +00:00
Mike Heffner
d1821d3da2 Rearrange a little, specifically:
- removed "Option string values" section and divided up amongst mail
  options and environment section
- expanded environment section
- rearranged mail options
- added default values to the mail options for clarification

Reviewed by:	ru
2002-06-25 05:16:11 +00:00
Juli Mallett
90af6a724e Remove deprecated register qualifier. 2002-06-24 17:40:27 +00:00
Mark Murray
a5a01740a0 Better warnings fixes. Use more sane argument types instead of bogus casts
Submitted by:	bde
2002-06-24 16:35:19 +00:00
Christian Weisgerber
401717b20d Fix unaligned access error.
Reviewed by:	ticso
2002-06-24 12:40:11 +00:00
Tim J. Robbins
d1a1392d8f Fix off by one in `y' (transliterate) command which caused the last character
of the pattern space not to be examined.

Noticed by:	Motoyuki Konno <motoyuki@bsdclub.org>
2002-06-24 11:24:02 +00:00
Philippe Charnier
a228302fca Make egetopt() return -1 not EOF, as getopt(3) do.
Reviewed by:markm
2002-06-23 20:42:30 +00:00
Tim J. Robbins
525b0bc8df Document the fairly obvious effect of the PATH environment variable. 2002-06-23 11:49:08 +00:00
Tim J. Robbins
c8c46b4307 Make the Examples section consistent with the rest of the system manual
pages: description of command first, then command as typed (no shell prompt)
using Dl macro.
2002-06-23 11:21:20 +00:00
Philippe Charnier
dfe2d6470a add DIAGNOSTICS section 2002-06-23 09:48:25 +00:00
David E. O'Brien
5386688cf3 Only got one of the Perl usages. 2002-06-23 00:57:17 +00:00
David E. O'Brien
2c4d8a870f Replace a perl usage with an AWK one.
Submitted by:	Bob Willcox <bob@immure.com>
2002-06-23 00:55:03 +00:00
Juli Mallett
1926d4aaad Stylistic nit:
main()'s argv argument is char*[], and functions that may inherit that arg
should use char*[] as well.
2002-06-22 12:59:40 +00:00
Juli Mallett
5058dcb497 Check for results of repeated calls to strnsubst(), as well as for the
behaviour with NULL match string, as that has changed over time.
2002-06-22 12:58:42 +00:00
Juli Mallett
893305fe5e When giving an example that relies on shell expansion/globbing, don't use a
replstr for -J that will be interpereted by the shell.

MFC after:	1 day
2002-06-22 12:47:56 +00:00
Tim J. Robbins
5953156dca Now that the pattern space contains no trailing newline, modify the `l'
command's output so it's the same as what SUSv3 specifies.
2002-06-22 03:00:52 +00:00
Tim J. Robbins
ed92199d30 Don't store newlines at the end of each line in the hold/pattern spaces,
instead add the newline when the pattern space is printed. Make the `G' and
`H' commands add a newline to the space before the data, remove bogus
addition of newline from `x' command.

PR:		29790, 38195
2002-06-22 01:42:26 +00:00
Mark Murray
4c2fb88368 Better fix for style.
Suggested by:	ru (but modified a bit by markm)
2002-06-21 11:06:11 +00:00