| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Submitted by: Tom Rush <tarush@mindspring.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
while remaining (becoming :) compatible with other popular shells.
Specifically these changes include:
1) Implement 'trap -l' to get a list of valid signals names. This
is useful if you wanted to do something like reset all signal
handlers to there defaults values, in which case something like
this will do the trick.
trap `trap -l`
2) Reformat the output of 'trap' so it can be saved and later eval'd
to restore the saved settings.
3) Allow the use of signal names as well as signal numbers.
4) Fix trap handling of SIGCHLD so that commands like the following
(albeit, contrived) won't cause sh(1) to recurse ad infinitum.
trap uname 0 20
5) Make variables static that are used only in trap.c.
6) Minor 'style(9) police' mods.
|
| |
|
|
|
|
|
|
| |
from leaking out.
Noticed by: bde
|
|
|
|
|
|
| |
use 'getcwd(NULL, 0)' just as pwd(1) does.
Suggested by: bde
|
|
|
|
|
|
|
| |
now handles the getpwd() init problem the same way as bash
and ksh do. Also while I was in here, I cleaned up the format
a little, removed some unnnecessary #if SYMLINKS cruft, and
changed the pwd builtin to use getcwd(3) as Joerg suggested.
|
|
|
|
|
|
| |
optimization. (num-- > 0) --> (--num >= 0).
Obtained from: NetBSD
|
| |
|
|
|
|
|
|
|
|
| |
getopts should now work as expected. This fix was in the NetBSD
code that I was merging from but missed getting into FreeBSD's
version because of 'drain bamage' on my part.
Submitted by: NetBSD, joerg
|
|
|
|
| |
Obtained from: NetBSD, me
|
| |
|
| |
|
|
|
|
| |
-p mod obtained from: NetBSD
|
|
|
|
|
| |
cruft is protected by a #ifdef (BSD4_4_LITE) that should be
removed when this is supported by the kernel.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
not yet implemented is protected by a define (BSD4_4_LITE)
that should be removed when this call is supported by the
kernel.
|
| |
|
|
|
|
|
|
| |
incorrectly called.
Incorrect usage mod obtained from: NetBSD
|
| |
|
|
|
|
| |
use of .Nm macros, and -Wall cleaning.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
isofs while the df command itself used the name iso9660fs or
cdfs. Both of these were inconsistent with the name cd9660 which
is used by the mount command. I modified df to recognize all of
the names cd9660, cdfs, isofs, and iso9660fs, and take them all
to refer to the same thing. Naturally I added a note of this
behaviour in the manual page too.
Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
|
|
|
|
|
| |
off if there are no other options, always (?) on if another option that
changes the state is processed earlier).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and he's right ... I forgot about this floating point stuff you can
use in user-land :-)
Increase precision of duration to microseconds.
No heuristics to avoid overflow in calculation needed - just depend
on DBL_MAX being a bit larger than LONG_MAX.
Use double instead of `struct timeval' in dd.h so that everything
doesn't have to include <sys/time.h>.
Fixed style bugs in recent and old FreeBSD changes.
Reviewed by: phk
Submitted by: bde
|
|
|
|
| |
Some heuristics to avoid overflow in calculation attempted.
|
|
|
|
|
|
|
|
|
|
| |
This patch causes too many side effects, one of which bites hard is
when interrupting a 'make fetch' in the ports tree (PR#1990).
This whole area is a real can of worms....
This most definately should go into 2.2
Reviewed by: steve, bde
|
| |
|
| |
|
|
|
|
| |
2) replace collate_range_cmp call with its code
|
|
|
|
|
|
| |
found in bash, zsh, and friends.
Reviewed by: joerg
|
|
|
|
|
|
|
|
| |
so that simple regresssion tests based on `cmp' work. mkdep still
doesn't work right for these tools. They should probably be in
separate directories.
Sorted dependencies.
|
|
|
|
|
|
|
| |
when a child is forked and the -c commandline switch
has been specified.
Reviewed by: joerg
|
|
|
|
|
|
|
|
|
| |
the full argument vector.
I've bumped into a few things that expected this switch to be present,
the most recent was the snmp package in ports. I'm not 100% sure of the
origins of this, but Linux has it, so does the "BSD-compatable" version
of ps on our SVR4 systems (so I assume SunOS has it too).
|
| |
|
|
|
|
|
|
|
|
|
| |
flag text in the man page. Now this will work
correctly:
/bin/sh -ec 'false && true; echo hi'
Obtained from: VaX#n8 <vax@linkdead.paranoia.com>
|
| |
|
|
|
|
|
| |
tweaked to work as a builtin better (ie: calls the real printf formatting
code, not sh's cut-down out1fmt() function)
|
| |
|
|
|
|
|
|
|
| |
the 4.4 lite 2 tape as well. There are now only two diffs between
NetBSD's cat and FreeBSD's cat:
getopt return value is -1 on NetBSD and EOF on FreeBSD.
NetBSD has added setlocale calls before anything else.
|
|
|
|
| |
csh was one of the 3 programs in /usr/src that (mis)used NOFILE.
|
| |
|
|
|
|
| |
ts_nsec -> tv_nsec
|
|
|
|
|
|
| |
*blush* %-\
Pointed out by: bruce
|
| |
|
|
|
|
| |
Steve's.. :-]
|
|
|
|
| |
patch-by-hand botch, but it sig-11's during make world.
|
|
|
|
| |
Submitted by: Steve Price <sprice@hiwaay.net>
|