freebsd-skq/bin/sh
Bill Fenner 99907703d9 Instead of eating trailing newlines after inserting them into the
output buffer, don't insert them at all.  This prevents a buffer
*underrun* when the substitution consists completely of newlines
(e.g. `echo`) and the byte before the source buffer to which p
points is a '\n', in which case more characters would be removed
from the output buffer than were inserted.

This fixes certain port builds on sparc64.

Approved by:	re (scottl)
Reviewed by:	des, tjr
2003-05-31 06:27:57 +00:00
..
bltin
funcs
alias.c
alias.h
arith_lex.l
arith.h
arith.y
builtins.def
cd.c
cd.h
error.c
error.h
eval.c
eval.h
exec.c
exec.h
expand.c Instead of eating trailing newlines after inserting them into the 2003-05-31 06:27:57 +00:00
expand.h
histedit.c
init.h
input.c
input.h
jobs.c
jobs.h
mail.c
mail.h
main.c
main.h
Makefile The is_name and is_in_name macros are FUBAR'ed. 2003-05-02 06:24:51 +00:00
memalloc.c
memalloc.h
miscbltin.c
mkbuiltins
mkinit.c
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c
options.h
output.c
output.h
parser.c
parser.h
redir.c
redir.h
sh.1 mdoc(7) police: A better version of the same. 2003-05-16 21:19:32 +00:00
shell.h
show.c
show.h
TOUR
trap.c
trap.h
var.c Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
var.h