freebsd-src/bin/sh
Tim J. Robbins 6c8bbe749e Don't assume the shell's controlling terminal is attached to file descriptor
2. Instead, open /dev/tty. This problem stopped commands in subshells from
being executed correctly if standard error was redirected.

PR:		36671
Obtained from:	NetBSD (but simplified)
2002-07-11 06:42:11 +00:00
..
bltin Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
funcs
alias.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
alias.h o __P has been reoved 2002-02-02 06:50:57 +00:00
arith.h o __P has been reoved 2002-02-02 06:50:57 +00:00
arith.y o __P has been reoved 2002-02-02 06:50:57 +00:00
arith_lex.l o __P has been reoved 2002-02-02 06:50:57 +00:00
builtins.def Remove the printf builtin command from sh(1), which command is not 2001-11-20 18:33:59 +00:00
cd.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
cd.h o __P has been reoved 2002-02-02 06:50:57 +00:00
error.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
error.h o __P has been reoved 2002-02-02 06:50:57 +00:00
eval.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
eval.h o __P has been reoved 2002-02-02 06:50:57 +00:00
exec.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
exec.h o __P has been reoved 2002-02-02 06:50:57 +00:00
expand.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
expand.h o __P has been reoved 2002-02-02 06:50:57 +00:00
histedit.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
init.h o __P has been reoved 2002-02-02 06:50:57 +00:00
input.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
input.h o __P has been reoved 2002-02-02 06:50:57 +00:00
jobs.c Don't assume the shell's controlling terminal is attached to file descriptor 2002-07-11 06:42:11 +00:00
jobs.h Add -s (output PID's only) and -l (show PID's) options to the jobs(1) 2002-05-31 14:04:23 +00:00
machdep.h
mail.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mail.h o __P has been reoved 2002-02-02 06:50:57 +00:00
main.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
main.h o __P has been reoved 2002-02-02 06:50:57 +00:00
Makefile Lock down with WFORMAT=1 except those directories with unfixed warnings. 2002-02-04 02:49:19 +00:00
memalloc.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
memalloc.h o __P has been reoved 2002-02-02 06:50:57 +00:00
miscbltin.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mkbuiltins Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and 2002-02-18 06:08:23 +00:00
mkinit.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mknodes.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mksyntax.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mktokens Minor const cleanup. 2002-06-20 05:20:50 +00:00
myhistedit.h o __P has been reoved 2002-02-02 06:50:57 +00:00
mystring.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
mystring.h o __P has been reoved 2002-02-02 06:50:57 +00:00
nodes.c.pat o __P has been reoved 2002-02-02 06:50:57 +00:00
nodetypes Implement the -C (-o noclobber) option, which prevents existing regular 2002-05-19 06:03:05 +00:00
options.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
options.h o __P has been reoved 2002-02-02 06:50:57 +00:00
output.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
output.h Missing prototypes from previous commit. 2002-06-04 13:13:54 +00:00
parser.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
parser.h o __P has been reoved 2002-02-02 06:50:57 +00:00
redir.c Close file descriptors when [n]>&- and [n]<&- redirections are used. 2002-07-09 08:55:46 +00:00
redir.h o __P has been reoved 2002-02-02 06:50:57 +00:00
sh.1 Fix type-o in last commit in preparation for MFC. 2002-07-02 19:06:33 +00:00
shell.h Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and 2002-02-18 06:08:23 +00:00
show.c Print out commands with NTOFD/NFROMFD redirections that close the 2002-07-09 03:26:47 +00:00
show.h o __P has been reoved 2002-02-02 06:50:57 +00:00
TOUR
trap.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
trap.h o __P has been reoved 2002-02-02 06:50:57 +00:00
var.c Consistently use FBSDID 2002-06-30 05:15:05 +00:00
var.h Implement $PPID, the parent process ID of the shell. 2002-06-01 02:14:48 +00:00