[vlc-devel] [PATCH] tools: clean up after sed test
Sean McGovern
gseanmcg at gmail.com
Wed Apr 16 08:53:00 CEST 2014
Some implementations of sed blindly take the argument following
-i to be the file extension for the backup during an in-place edit.
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index f1b1981..28bad24 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -34,7 +34,7 @@ fi
check_sed() {
tmp="`pwd`/check_sed"
-trap "rm $tmp" EXIT
+trap "rm $tmp{,-e} 2>/dev/null" EXIT
echo "test file for GNU sed" > $tmp
if ! sed -i -e 's/sed//' $tmp >/dev/null 2>&1
then
--
1.7.9.2
More information about the vlc-devel
mailing list