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
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
alias.c Fix dangling else warning. 1998-05-20 00:27:56 +00:00
alias.h
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
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
input.c Simplify interface for general use. 1998-05-20 01:36:14 +00:00
input.h
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
mail.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
mail.h
main.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
main.h
memalloc.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
memalloc.h
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
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
nodes.c.pat Pointer arithmetic on void * is illegal but gcc does not care. 1997-04-11 23:03:08 +00:00
nodetypes
options.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
options.h
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
redir.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
redir.h
sh.1 Small edit to n1>&n2 description. 1998-07-04 06:52:07 +00:00
shell.h
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