diff --git a/sim/sh/.Sanitize b/sim/sh/.Sanitize index 6b3a315985..8f80c35151 100644 --- a/sim/sh/.Sanitize +++ b/sim/sh/.Sanitize @@ -57,7 +57,7 @@ else echo Removing traces of \"sh4\" from $i... fi cp $i new - sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new + sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover...