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
chio Remove a __P(). 2002-03-09 19:32:03 +00:00
chmod
cp
csh % set verbose echo 2002-03-08 17:15:30 +00:00
date
dd
df
domainname
echo
ed
expr
hostname
kill
ksh
ln
ls
mkdir
mt
mv
pax
ps Drop trailing space. 2002-03-04 13:19:33 +00:00
pwd
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
rmdir
sh PR/16174: Matthias Buelow: Job control fails on jobs that fd == 2 does not 2002-04-03 14:30:44 +00:00
sleep
stty
sync
test
Makefile
Makefile.inc