From f015a843fcfa120286628ec75829575ee2391380 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Feb 2011 17:48:34 -0800 Subject: tests: replace several sed invocations with ed ed can do in-place editing portably, unlike sed. --- t/t0014-config-conflict.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 't/t0014-config-conflict.sh') diff --git a/t/t0014-config-conflict.sh b/t/t0014-config-conflict.sh index b06c915..088f218 100755 --- a/t/t0014-config-conflict.sh +++ b/t/t0014-config-conflict.sh @@ -4,7 +4,7 @@ t_plan 6 "config variables conflict with preload_app" t_begin "setup and start" && { rainbows_setup - rtmpfiles ru rutmp + rtmpfiles ru cat > $ru <<\EOF use Rack::ContentLength @@ -23,8 +23,10 @@ t_begin "hit with curl" && { } t_begin "modify rackup file" && { - sed -e 's/world/WORLD/' < $ru > $rutmp - mv $rutmp $ru + ed -s $ru <