NetBSD/bin
christos e6ab6d48dc PR/16174: Matthias Buelow: Job control fails on jobs that fd == 2 does not
point to a tty.

Unfortunately the shell assumed that it could do all process group
handling ioctls to fd=2, but this is not correct. Jobs that redirected
fd=2 would be unable to perform the ioctls and silently fail since
the error reporting channel is fd=2... Instead open /dev/tty set
it to close on exec, and use that instead (like all other shells
do). We don't handle the case where the OS does not provide FD_CLOEXEC
or FIOCLEX, because I am lazy.

While I am there:
- Simplify the code by defining functions for tc{g,s}pgrp when OLD_TTY_DRIVER
  is defined.
- make sure that 'sh &' works by stopping itself. Don't kill the shell's
  process group, kill the shell itself.
2002-04-03 14:30:44 +00:00
..
cat Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
chio Remove a __P(). 2002-03-09 19:32:03 +00:00
chmod Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
cp Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
csh % set verbose echo 2002-03-08 17:15:30 +00:00
date Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
dd Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
df Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
domainname Update to reflect reality - s,/etc/netstart,/etc/rc.d/network, 2001-02-27 17:47:22 +00:00
echo Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
ed Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
expr rewritten in NetBSD 1.6 -> rewritten for NetBSD 1.6 2002-02-19 21:14:45 +00:00
hostname ANSIfy and KNF fixes, use {g,s}etprogname. Patch by Petri Koistinen. 2001-09-16 13:48:35 +00:00
kill Xref pkill/pgrep. 2002-03-04 13:02:32 +00:00
ksh Fix bin/5205 (weird interaction between tbl and man macros). 2002-01-29 15:12:54 +00:00
ln ANSIfy, KNF, by Petri Koistinen. 2001-09-16 22:14:40 +00:00
ls Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
mkdir Cosmetic changes. 2002-02-19 06:30:12 +00:00
mt Whitespace nits. 2001-12-20 19:31:48 +00:00
mv Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
pax "doesn't" should have an 's'. 2002-02-11 11:19:26 +00:00
ps Drop trailing space. 2002-03-04 13:19:33 +00:00
pwd Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
rcmd Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
rcp Split the notion of building Hesiod, Kerberos, S/key, and YP 2002-03-22 18:10:19 +00:00
rm Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
rmdir Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
sh PR/16174: Matthias Buelow: Job control fails on jobs that fd == 2 does not 2002-04-03 14:30:44 +00:00
sleep Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
stty Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
sync Sort SEE ALSO. 2001-12-20 20:03:29 +00:00
test Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
Makefile move rcorder to sbin. 1999-11-23 05:28:15 +00:00
Makefile.inc change from WARNS?=1 to WARNS?=2 for bin/ 2001-11-03 13:40:30 +00:00