Ruslan Ermilov
43cf90aa10
mdoc(7) police: whitespace nits.
2002-08-09 10:49:50 +00:00
Ruslan Ermilov
ca38f0ddf7
mdoc(7) police: tidy up, bump document date on behalf of the -n option.
2002-08-09 10:46:00 +00:00
Ruslan Ermilov
c3ff3e424c
mdoc(7) police: grammar.
2002-08-09 10:38:34 +00:00
Ruslan Ermilov
154f47dd8d
mdoc(7) police: kill hard sentence breaks and one double space.
2002-08-09 10:34:57 +00:00
David E. O'Brien
30d90946d1
Allow "-v -v" to mean very verbose.
...
Reviewed by: freebsd-standards
PR: 40709
Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
2002-08-04 05:29:13 +00:00
Mark Murray
5bb23f3653
Remove the last reference to NOUUCP - we don't have UUCP in the base
...
system.
2002-08-02 10:55:51 +00:00
Mark Murray
f193e3fc68
Fix an easy WARNS.
2002-07-31 16:53:59 +00:00
Mark Murray
13fcef50d0
Fix some easy WARNS.
2002-07-31 16:52:16 +00:00
Mark Murray
9f82c1d3b1
Give lint a small bit of help.
2002-07-31 16:50:21 +00:00
David Malone
6576952ca5
Make test check the tv_nsec part of a struct stat when comparing
...
the mtimes of a file. (This is probably only useful if you have
vfs.timestamp_precision set to something nonzero).
PR: 39163
Submitted by: Hal Burch <hburch@lumeta.com>
MFC after: 2 weeks
2002-07-27 22:53:44 +00:00
Tim J. Robbins
7e1975c2b2
Add a -P/-o physical option which behaves similarly to bash/ksh's options
...
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.
Submitted by: fanf
2002-07-25 10:57:39 +00:00
Tim J. Robbins
050f7913c9
Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown
...
options.
2002-07-25 10:47:38 +00:00
Tim J. Robbins
93c0dc5ea6
Use PATH_MAX instead of a local guess at it, which happened to be incorrect.
...
Suggested by: fanf
2002-07-25 09:56:08 +00:00
Tim J. Robbins
b5ae692823
pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.
...
Pointed out by: fanf
2002-07-25 09:46:31 +00:00
Mark Peek
317aee9760
Remove WARNS and WFORMAT overrides.
2002-07-24 22:26:44 +00:00
Tim J. Robbins
be58cc483e
Avoid calling el_resize() from a signal handler, even though libedit
...
itself does that if you set EL_SIGNAL. Instead, set a flag and check it
before calling el_gets(). This is safer, but slower to respond to changes.
Pointed out by: mp
2002-07-24 02:06:07 +00:00
Tim J. Robbins
9de7305e58
Catch SIGWINCH in interactive shells and call el_resize() to update
...
libedit's idea of the window size.
2002-07-23 15:05:00 +00:00
Tim J. Robbins
ecd807fb6d
Call el_source() to read the contents of .editrc when line editing is enabled.
...
Obtained from: NetBSD
MFC after: 2 weeks
2002-07-23 12:26:34 +00:00
Tim J. Robbins
088acf9001
Add a `bind' builtin command, which is simply a wrapper around libedit's
...
builtin command of the same name. This allows the key bindings for the
shell's line editor to be changed.
MFC after: 2 weeks
2002-07-23 11:50:53 +00:00
Johan Karlsson
786c276fe4
Add the -n option, which automatically answers "no" to the overwrite question.
...
PR: 7828
Suggested by: Daniel O'Connor <doconnor@gsoft.com.au>
Approved by: sheldonh (mentor)
MFC after: 2 weeks
2002-07-23 00:42:56 +00:00
Tim J. Robbins
776600e6de
Don't allow "||" or "&&" to be the first tokens of a command.
...
PR: 40386
MFC after: 2 weeks
2002-07-22 05:50:12 +00:00
Tim J. Robbins
2babaf74b5
Implement the P1003.2 `command' builtin command, which is used to suppress
...
shell function and alias lookup. The -p option has been implemented, the
UPE -v and -V options have not. The old `command' command has been renamed
to `builtin'.
2002-07-21 06:49:14 +00:00
Tim J. Robbins
558175ca15
Document that only one of the -n and -e options may be specified for
...
sh(1)'s echo(1) builtin command.
PR: 32935, 40747
MFC after: 1 week
2002-07-20 04:39:23 +00:00
Tim J. Robbins
2628ebdbd1
Remove broken and incomplete support for old releases of System V,
...
don't support system that implement getcwd(3) with a pipe to /bin/pwd.
2002-07-19 08:09:04 +00:00
Tim J. Robbins
5b99fa0514
Don't assume file descriptors fit in a short, use an int instead.
2002-07-18 12:24:35 +00:00
Tim J. Robbins
b80be28218
Avoid using ints or shorts to store process id's, use pid_t instead.
...
The pgrp member of struct job was declared as a short and could not store
every possible process group ID value, the rest of them were benign because
pid_t happens to be an int.
2002-07-18 10:22:42 +00:00
Tim J. Robbins
f1ae2c66c8
Make the message that is printed when the foreground process is terminated
...
by a signal the same as pdksh/bash/sh before rev. 1.34.
2002-07-18 09:37:51 +00:00
Sheldon Hearn
ced4deb156
Revert previous delta, which is not required with rev 1.5 of
...
src/contrib/gcc/c-format.c .
2002-07-15 12:08:21 +00:00
Giorgos Keramidas
cd8fb74d84
Fix a couple of typos in a comment.
...
PR: docs/33559
Submitted by: Marc Olzheim <marcolz@ilse.nl>
2002-07-15 02:03:30 +00:00
Tim J. Robbins
90833c99de
Complain if more than one file argument is given to unlink(1) like we did
...
before I made unlink use getopt().
2002-07-12 07:20:20 +00:00
Giorgos Keramidas
b11b570d7b
Don't duplicate the description of the sticky bit that is already
...
part of chmod(2) and sticky(8), but refer to those manpages instead.
PR: docs/35605
Submitted by: Gary W. Swearingen <swear@blarg.net>
2002-07-12 01:57:44 +00:00
Bruce Evans
c1f903a031
Fixed a printf format error that was fatal on alphas. Adding WFORMAT=0
...
to the Makefile didn't affect this bug because WFORMAT only controls
higher- level format checking (not the -Wformat that is implicit in
-Wall).
Fixed a nearby printf format error that was benign and 3 nearby style bugs.
2002-07-11 17:28:29 +00:00
Sheldon Hearn
a3ee32f3f7
Set WFORMAT=0, because our compiler currently complains about NULL
...
arg 2 to err() and friends, and warnings are promoted to errors.
This allows the following revisions to be reverted:
rev 1.39 src/bin/cp/cp.c
rev 1.26 src/bin/chmod/chmod.c
rev 1.40 src/bin/rm/rm.c
The following revisions can already be reverted, because they were
already covered by WFORMAT=0:
rev 1.8 src/bin/ls/lomac.c
rev 1.63 src/bin/ls/ls.c
rev 1.8 src/bin/ps/lomac.c
rev 1.34 src/bin/rcp/rcp.c
2002-07-11 08:45:38 +00:00
Tim J. Robbins
6c8bbe749e
Don't assume the shell's controlling terminal is attached to file descriptor
...
2. Instead, open /dev/tty. This problem stopped commands in subshells from
being executed correctly if standard error was redirected.
PR: 36671
Obtained from: NetBSD (but simplified)
2002-07-11 06:42:11 +00:00
Tim J. Robbins
17f08ec1bc
Remove support for the "old" tty driver by unifdef -UOLD_TTY_DRIVER;
...
many other parts of the shell are no longer compatible with this, and it
makes jobs.c quite cluttered with #ifdef's.
2002-07-11 06:26:48 +00:00
Tim J. Robbins
0d3d4c12c3
When growing the job table, don't relocate the jobmru pointer if it's NULL.
2002-07-11 04:22:41 +00:00
Matthew Dillon
5ad9e45f96
err() is documented as allowing NULL for the format string but GCC isn't
...
happy about it any more so change the usage to make buildworld work again.
2002-07-10 20:44:55 +00:00
Matthew Dillon
3951e2ab28
err() is documented as allowing NULL for the format string but GCC isn't
...
happy about it any more so change the useage so buildworld works again.
2002-07-10 20:36:25 +00:00
Johan Karlsson
0f7109e8c2
Update usage for the addition of -n in rev 1.35 of mv.c.
...
Approved by: obrien, sheldonh (mentor).
2002-07-09 17:45:13 +00:00
Tim J. Robbins
ce80ed021f
Close file descriptors when [n]>&- and [n]<&- redirections are used.
...
This was broken by rev. 1.16.
PR: 40334
MFC after: 1 week
2002-07-09 08:55:46 +00:00
Tim J. Robbins
907354479f
Print out commands with NTOFD/NFROMFD redirections that close the
...
descriptors (">&-" or similar) correctly in the jobs(1) command.
2002-07-09 03:26:47 +00:00
Juli Mallett
7ed0457457
Bring back WFORMAT=0.
2002-07-08 15:48:39 +00:00
Robert Drehmel
a755f1c9d0
- Use (MAXLOGNAME - 1) where UT_NAMESIZE was used to be able to
...
(-)remove the inclusions of <utmp.h>.
2002-07-08 09:08:51 +00:00
Juli Mallett
ffe25988bd
Make printval() take a 'void *' thus negating any assumptions the compiler
...
may try to make about the alignment of the dereferenced datum.
2002-07-07 21:45:59 +00:00
Philippe Charnier
4690560d06
The .Nm utility
2002-07-06 19:13:21 +00:00
Mike Barcroft
0ad736e62b
Don't depend on pollution in <limits.h> for the definition of
...
<stdint.h> macros.
2002-07-05 15:58:27 +00:00
Maxim Konovalov
27f3fb1aad
Fix a memory leak.
...
PR: bin/40177
MFC after: 1 week
2002-07-05 10:27:34 +00:00
Ruslan Ermilov
73ca71fef9
mdoc(7) police: a bit of tidying.
2002-07-04 13:22:22 +00:00
Mark Murray
7ede89e44b
Fix some low-hanging lint-fruit: endianness and staticness warnings.
2002-07-03 16:35:20 +00:00
Matthew Dillon
2d41ef4b59
Fix type-o in last commit in preparation for MFC.
2002-07-02 19:06:33 +00:00