From 29d64fe19029128d1c056074a86b230a04f151b6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 20 Oct 2006 06:04:19 +0000 Subject: [PATCH] Make dosed use sed -i instead of a temp file. Thanks to Tim Cera for this patch from bug #152017. svn path=/main/trunk/; revision=4762 --- bin/dosed | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/dosed b/bin/dosed index 20f7ba281..e14194b28 100755 --- a/bin/dosed +++ b/bin/dosed @@ -9,9 +9,7 @@ for x in "$@" ; do y="${D}${x}" if [ -e "${y}" ] ; then if [ -f "${y}" ] ; then - mysrc="${T}/${y##*/}" - cp "${y}" "${mysrc}" - sed -e "${mysed}" "${mysrc}" > "${y}" + sed -ie "${mysed}" "${y}" else echo "${y} is not a regular file!" exit 1 -- 2.26.2