| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
for tools).
|
|
|
|
| |
pid_t when referring to process IDs.
|
|
|
|
| |
political issue.
|
|
|
|
|
|
|
|
| |
>Category: bin
>Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $?
PR: 3780
Submitted by: sanewo@ba2.so-net.or.jp
|
| |
|
|
|
|
|
|
|
| |
using the WIF* macros in sys/wait.h.
PR: bin/3668
Submitted by: dholland@eecs.harvard.edu
|
|
|
|
|
|
| |
rule that shows the dependency of arith_lex.[co] on y.tab.h.
Suggested by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
| |
not fail with an "don't know how to make y.tab.h" error.
|
| |
|
|
|
|
|
|
| |
depend on generated headers.
Reviewed by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
|
|
| |
from being executed in non-interactive mode.
Suggested and Reviewed by: Brian Somers <brian@freebsd.org>
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
|
|
|
|
|
| |
keyword usage.
Obtained from: NetBSD
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
and remove an unnecessary reset.
Obtained from: NetBSD
|
|
|
|
|
|
| |
arithmetic.
Obtained from: NetBSD
|
|
|
|
|
|
| |
input files FD_CLOEXEC.
Obtained from: NetBSD
|
|
|
|
|
|
| |
show an error message.
Inspired by: NetBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
|
|
| |
problem with 'make -j n' and no .depend file goes away.
I think Bruce mentioned this somewhere on one of the
mailing lists.
Obtained from: NetBSD
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
| |
to get truncated.
Submitted by: bde
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
|
|
| |
tcsetpgrp failed, errno=1
Discovered and Reviewed by: joerg
|
|
|
|
| |
PR#2331: strange output of sh's pwd on symlinked directories.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
*blush* %-\
Pointed out by: bruce
|