keramida
ebdc2917a0
Fix a warning of "possibly used before initialisation".
...
Reviewed by: tjr
2002-08-29 14:29:09 +00:00
keramida
856d1951e7
Add <stdlib.h> to get a prototype for exit().
...
Reviewed by: tjr
2002-08-29 14:26:49 +00:00
keramida
ca5a3ce3ac
Grammar fix.
...
PR: docs/42021
Submitted by: Jeff Ito <jeffi@rcn.com>
MFC after: 3 days
2002-08-26 06:16:51 +00:00
trhodes
61c891a6d3
Fix 'SYNOPSIS' and 'usage'
2002-08-26 04:56:23 +00:00
charnier
eafd430bd4
Replace various spellings with FALLTHROUGH which is lint()able
2002-08-25 13:01:47 +00:00
tjr
a047034d7f
There is a built-in command called "builtin"; spell its name correctly
...
after rev. 1.77 called it "built-in".
2002-08-24 12:41:23 +00:00
tjr
81f7bff683
Don't show the process ID of background jobs that have terminated,
...
for consistency with ksh.
2002-08-24 07:19:01 +00:00
bde
3d187a3e1b
Removed extra $FreeBSD$. Moved #if 0 for the vendor id to the correct
...
place. Restored indent protection of copyright comment.
2002-08-22 01:07:16 +00:00
trhodes
76af16d03e
s/filesystem/file system/ as discussed on -developers
2002-08-21 17:32:44 +00:00
schweikh
e829c2925d
Fix a few typos, among them s/builtin/built-in/ (except for the ref
...
to the builtin(1) man page.) This is for consistency with the spelling
both proposed by ispell as well as IEEE Std 1003.1-2001.
MFC after: 3 days
2002-08-21 15:05:55 +00:00
ru
0e8c3b874a
mdoc(7) police: fixed the document date.
...
Submitted by: iedowse
2002-08-19 07:15:20 +00:00
jmallett
51dc8825ab
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
tjr
ab3b6a5fac
Avoid accessing the current job's process table in the child part of
...
forkshell() after it has been freed. This caused mysterious behaviour
when anything but the first command in a pipeline tried to access the
terminal when the `junk' malloc() option was enabled (which is the default).
2002-08-18 06:43:44 +00:00
tjr
e37ba5b252
Show job control ID, command text, etc. when foreground processes are
...
suspended. This is a followup to rev. 1.51.
MFC after: 1 week
2002-08-17 13:57:47 +00:00
johan
c3eafc8511
Bump document date for the -n option.
...
Approved by: sheldonh (mentor)
2002-08-16 03:13:59 +00:00
maxim
57e4496730
o Backout rev. 1.40 and rev. 1.49.
...
o Add argv[] boudary check.
PR: bin/40117
Reviewed by: silence on -audit
MFC after: 2 months
2002-08-15 14:53:20 +00:00
tjr
577205e37b
Claim conformance to 1003.2-1992 instead of 1003.1-2001 due to doubts
...
raised by Lukas Ertl over symbolic link handling.
PR: 41576
MFC after: 1 week
2002-08-12 12:34:03 +00:00
schweikh
7f17c396f7
Fix typos; each file has at least one s/seperat/separat/
...
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.
Suggested by: bde
MFC after: 3 days
2002-08-11 13:05:30 +00:00
tjr
f0c534b189
Allow redirections by themselves between "&&" and "||" operators.
...
For example, >/dev/null && echo foo
Pointed out by: FUJISHIMA Satsuki
MFC after: 1 week
2002-08-11 03:04:23 +00:00
mux
079fc3b148
- Introduce a new struct xvfsconf, the userland version of struct vfsconf.
...
- Make getvfsbyname() take a struct xvfsconf *.
- Convert several consumers of getvfsbyname() to use struct xvfsconf.
- Correct the getvfsbyname.3 manpage.
- Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the
kernel, and rewrite getvfsbyname() to use this instead of the weird
existing API.
- Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist
sysctl.
- Convert a vfsload() call in nfsiod.c to kldload() and remove the useless
vfsisloadable() and endvfsent() calls.
- Add a warning printf() in vfs_sysctl() to tell people they are using
an old userland.
After these changes, it's possible to modify struct vfsconf without
breaking the binary compatibility. Please note that these changes don't
break this compatibility either.
When bp will have updated mount_smbfs(8) with the patch I sent him, there
will be no more consumers of the {set,get,end}vfsent(), vfsisloadable()
and vfsload() API, and I will promptly delete it.
2002-08-10 20:19:04 +00:00
ume
12a09ea0ac
IPv6 support for rcp.
...
You cannot specify a raw IPv6 address for now.
MFC after: 1 week
2002-08-09 16:12:08 +00:00
ru
b5d683ca2b
mdoc(7) police: tidying.
2002-08-09 10:59:20 +00:00
ru
59fe21e369
mdoc(7) police: whitespace nits.
2002-08-09 10:49:50 +00:00
ru
fe13af1517
mdoc(7) police: tidy up, bump document date on behalf of the -n option.
2002-08-09 10:46:00 +00:00
ru
1cb777c6b7
mdoc(7) police: grammar.
2002-08-09 10:38:34 +00:00
ru
f3f171f738
mdoc(7) police: kill hard sentence breaks and one double space.
2002-08-09 10:34:57 +00:00
obrien
4393e86c86
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
markm
a52279a50b
Remove the last reference to NOUUCP - we don't have UUCP in the base
...
system.
2002-08-02 10:55:51 +00:00
markm
a027a474af
Fix an easy WARNS.
2002-07-31 16:53:59 +00:00
markm
bc7ca1b373
Fix some easy WARNS.
2002-07-31 16:52:16 +00:00
markm
8090df0428
Give lint a small bit of help.
2002-07-31 16:50:21 +00:00
dwmalone
649a07af8d
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
tjr
a9a9a3d034
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
tjr
06fb7bfc59
Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown
...
options.
2002-07-25 10:47:38 +00:00
tjr
0268cac9ed
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
tjr
f9cb529365
pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.
...
Pointed out by: fanf
2002-07-25 09:46:31 +00:00
mp
92d9637b84
Remove WARNS and WFORMAT overrides.
2002-07-24 22:26:44 +00:00
tjr
51bad2a12d
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
tjr
5955dc5e66
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
tjr
f4200417b1
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
tjr
9a5640ecc6
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
89584f4beb
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
tjr
c615f2a3a3
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
tjr
0d9ec55e02
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
tjr
334ba4d212
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
tjr
0af69b2ef6
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
tjr
ffdff27dcb
Don't assume file descriptors fit in a short, use an int instead.
2002-07-18 12:24:35 +00:00
tjr
2e433107d0
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
tjr
73671cd865
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
sheldonh
c8277a411a
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