From bc4c3b9af083093839e1cfdc26eb43091d65a880 Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 21 Mar 2011 21:57:35 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20save/restore=20here=20document=20po?= =?UTF-8?q?inter=20during=20yyrecursive(),=20fixes=20crash=20=E2=80=A2=20a?= =?UTF-8?q?dd=20mirbsd/openbsd=20(omalloc=20rules!)=20specific=20testcase?= =?UTF-8?q?=20for=20the=20above=20=E2=80=A2=20$=5F=5Fprogname=20must=20be?= =?UTF-8?q?=20used=20quoted,=20fix=20in=20comsub-torture=20testcase=20(my?= =?UTF-8?q?=20bad)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.t | 20 +++++++++++++++----- sh.h | 4 ++-- syn.c | 5 ++++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/check.t b/check.t index bb38acb..ef66a4c 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.430 2011/03/17 22:09:20 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.431 2011/03/21 21:57:32 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -25,7 +25,7 @@ # http://www.research.att.com/~gsf/public/ifs.sh expected-stdout: - @(#)MIRBSD KSH R39 2011/03/17 + @(#)MIRBSD KSH R39 2011/03/21 description: Check version of shell. stdin: @@ -7040,13 +7040,13 @@ stdin: if (( lastf )); then x="inline_${nextf}() {"$fbody$'\n}\n' print -nr -- "$x" - print -r -- "${x}typeset -f inline_$nextf" | $__progname + print -r -- "${x}typeset -f inline_$nextf" | "$__progname" x="function comsub_$nextf { x=\$("$fbody$'\n); }\n' print -nr -- "$x" - print -r -- "${x}typeset -f comsub_$nextf" | $__progname + print -r -- "${x}typeset -f comsub_$nextf" | "$__progname" x="function reread_$nextf { x=\$(("$fbody$'\n)|tr u x); }\n' print -nr -- "$x" - print -r -- "${x}typeset -f reread_$nextf" | $__progname + print -r -- "${x}typeset -f reread_$nextf" | "$__progname" fi lastf=1 fbody= @@ -8384,3 +8384,13 @@ expected-stdout: 24 ?lnnix/nix =lnnix/nix: No such file or directory !2 25 ?lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself =lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself/lnself: Too many levels of symbolic links !62 --- +name: crash-1 +description: + Crashed during March 2011, fixed on vernal equinōx ☺ +category: os:mirbsd,os:openbsd +stdin: + export MALLOC_OPTIONS=FGJPRSX + "$__progname" -c 'x=$(tr z r <<