summaryrefslogtreecommitdiffstats
path: root/bin/sh/memalloc.c
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1998-09-13 19:24:57 +0000
committertegge <tegge@FreeBSD.org>1998-09-13 19:24:57 +0000
commitc82e121ce74c6eb8a8320558d50687405f5c3b06 (patch)
tree8dc9a8aa332a6ba94153af431e81d754f41f4a2e /bin/sh/memalloc.c
parentda907f2515cfc4bb9e3baebdeead74eded772425 (diff)
downloadFreeBSD-src-c82e121ce74c6eb8a8320558d50687405f5c3b06.zip
FreeBSD-src-c82e121ce74c6eb8a8320558d50687405f5c3b06.tar.gz
Be more consistent with handling of quote mark control character.
Don't output double-quotes inside variable expansion/arithmetic expansion region in here-documents. When leaving the arithmetic expansion syntax mode, adjust the dblquote flag according to previous syntax, in order to avoid splitting of quoted variables.
Diffstat (limited to 'bin/sh/memalloc.c')
-rw-r--r--bin/sh/memalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c
index b2fa2b4..c40eadd 100644
--- a/bin/sh/memalloc.c
+++ b/bin/sh/memalloc.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)memalloc.c 8.3 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id: memalloc.c,v 1.10 1998/09/06 21:13:09 tegge Exp $";
+ "$Id: memalloc.c,v 1.11 1998/09/10 14:51:06 cracauer Exp $";
#endif /* not lint */
#include "shell.h"
@@ -269,7 +269,7 @@ char *
growstackstr() {
int len = stackblocksize();
if (herefd >= 0 && len >= 1024) {
- xwrite(herefd, stackblock(), rmquotes(stackblock(), len));
+ xwrite(herefd, stackblock(), len);
sstrnleft = len - 1;
return stackblock();
}
OpenPOWER on IntegriCloud