NetBSD/bin/sh
itohy ef88b5d2bd Fixed memory leak on old style command substitution
such as  sh -c 'echo `echo foo`' .
The memory allocated with ckmalloc() at
parser.c:1349:readtoken1() (search for "done:" label)
was never freed.

I changed this to use 'string stack' framework of Ash.
Note that a string on string stack is properly freed on
exception and end of command parsing, and no explicit free
or signal handlings required.
See TOUR for an overview, and memalloc.[ch] for details
of string stack.
1998-09-26 20:56:33 +00:00
..
bltin Fix compiler warnings. 1997-07-04 21:01:48 +00:00
funcs Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
Makefile We don't generate .o's anymore for helper programs, so don't CLEANFILES them. 1998-09-12 18:58:41 +00:00
TOUR PR/2808: tokens.def -> tokens.h 1996-10-16 14:24:56 +00:00
alias.c Fix dangling else warning. 1998-05-20 00:27:56 +00:00
alias.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
arith.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
arith.y Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
arith_lex.l Portability fixes for a non flex based lexical analyzer. 1998-05-18 22:50:20 +00:00
builtins.def NO_HISTORY->SMALL 1997-03-14 01:42:18 +00:00
cd.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
cd.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
error.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
error.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.h Fix return builtin to work like it does in ksh: 1995-09-11 17:05:41 +00:00
exec.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
exec.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
expand.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
expand.h PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args> 1998-01-31 12:45:06 +00:00
histedit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
init.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
input.c Simplify interface for general use. 1998-05-20 01:36:14 +00:00
input.h PR/2808: Remove trailing whitespace (from FreeBSD) 1996-10-16 15:45:03 +00:00
jobs.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
jobs.h pid should be pid_t and status should be int! Avoid alignment problems... 1997-10-15 13:23:10 +00:00
machdep.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
mail.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
mail.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
main.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
main.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
memalloc.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
memalloc.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
miscbltin.c include <stdlib.h> to get the prototype for free() 1998-09-26 19:28:12 +00:00
miscbltin.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mkbuiltins Pr/5221: Jason Thorpe: Simplify sh Makefile, so that builts from other 1998-03-29 09:27:40 +00:00
mkinit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mknodes.c Delint. 1998-07-28 05:31:22 +00:00
mksyntax.c Patch to make sh cross-compile right. mksyntax reports unsigned char for 1998-09-12 18:55:07 +00:00
mktokens PR/2808: tokens.def -> tokens.h 1996-10-16 14:47:49 +00:00
myhistedit.h Track $TERM and call the appropriate editline(3) routine to update the 1997-04-11 22:45:38 +00:00
mystring.c Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mystring.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
nodes.c.pat Pointer arithmetic on void * is illegal but gcc does not care. 1997-04-11 23:03:08 +00:00
nodetypes Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
options.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
options.h Fix miscellaneous getopts problems: 1996-11-06 01:17:10 +00:00
output.c - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
output.h - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
parser.c Fixed memory leak on old style command substitution 1998-09-26 20:56:33 +00:00
parser.h PR/2808: Remove trailing whitespace (from FreeBSD) 1996-10-16 15:45:03 +00:00
redir.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
redir.h PR/2808: Remove trailing whitespace (from FreeBSD) 1996-10-16 15:45:03 +00:00
sh.1 Small edit to n1>&n2 description. 1998-07-04 06:52:07 +00:00
shell.h PR/2808: Don't define DEBUG and #ifdef out functions not needed when DEBUG 1996-10-16 15:21:49 +00:00
show.c Remove local declaration of getenv(); 1997-12-01 14:40:16 +00:00
show.h add forward declaration of union node; 1997-04-11 22:58:40 +00:00
trap.c Delint. 1998-07-28 05:31:22 +00:00
trap.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
var.c fix default PATH to be <paths.h> _PATH_DEFPATH 1998-04-07 21:15:33 +00:00
var.h Track $TERM and call the appropriate editline(3) routine to update the 1997-04-11 22:45:38 +00:00