freebsd-nq/bin/sh
Martin Cracauer 84c3800cdc From submitter:
growstackblock() sometimes relocates a stack_block considered empty
without properly relocating stack marks referencing that block.
The first call to popstackmark() with the unrelocated stack mark
as argument then causes sh to abort.

Relocating the relevant stack marks seems to solve this problem.

The patch changes the semantics of popstackmark() somewhat.  It can
only be called once after a call to setstackmark(), thus cmdloop() in
main.c needs an extra call to setstackmark().

PR:		bin/19983
Submitted by:	Tor.Egge@fast.no
Reviewed by:	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2000-08-16 10:39:43 +00:00
..
bltin Add \a and \e to "echo -e" escape handling. 2000-06-26 22:43:30 +00:00
funcs $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
alias.c Fixd with alias missing. 2000-07-15 14:34:37 +00:00
alias.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
arith_lex.l Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
arith.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
arith.y $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
builtins.def $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
cd.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
cd.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
error.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
error.h Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
eval.c Fix environment passung to eval'ed commands. 2000-05-15 12:33:17 +00:00
eval.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
exec.c Fix command hash handling on 1999-12-20 13:42:59 +00:00
exec.h Fix command hash handling on 1999-12-20 13:42:59 +00:00
expand.c Fix environment passung to eval'ed commands. 2000-05-15 12:33:17 +00:00
expand.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
histedit.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
init.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
input.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
input.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
jobs.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
jobs.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
machdep.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mail.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mail.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
main.c From submitter: 2000-08-16 10:39:43 +00:00
main.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
Makefile Improve shell documentation: 1999-09-08 15:40:46 +00:00
memalloc.c From submitter: 2000-08-16 10:39:43 +00:00
memalloc.h From submitter: 2000-08-16 10:39:43 +00:00
miscbltin.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
mkbuiltins $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mkinit.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
mknodes.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
mksyntax.c First round of 8-bit fixes. 1999-12-15 11:46:32 +00:00
mktokens $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
myhistedit.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mystring.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mystring.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
nodes.c.pat $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
nodetypes $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
options.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
options.h Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
output.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
output.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
parser.c Fix parsing of string for eval command. 2000-05-15 13:02:07 +00:00
parser.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
redir.c Include strerror(errno) in error messages after failed system calls. 1999-11-29 19:11:01 +00:00
redir.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
sh.1 Mark up the -a flag to unalias as a flag (Fl), not an argument (Ar). 2000-07-24 15:02:04 +00:00
shell.h Rename the trace() function (that is build only in the -DDEBUG=2 2000-04-20 11:39:11 +00:00
show.c Rename the trace() function (that is build only in the -DDEBUG=2 2000-04-20 11:39:11 +00:00
show.h Rename the trace() function (that is build only in the -DDEBUG=2 2000-04-20 11:39:11 +00:00
TOUR $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
trap.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
trap.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
var.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
var.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00