From b150de0a99304ca9661193ccf831845c52010b3d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 5 Sep 2000 12:15:30 +0000 Subject: Redirect stdout to stderr before trying to remove the temp directory. Otherwise, the `rm -rf' would get an error because the output file wouldn't be closed and the directory wouldn't be `empty'. --- tests/cp/same-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cp/same-file') diff --git a/tests/cp/same-file b/tests/cp/same-file index aeec21022..ccc4f5b6c 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -14,7 +14,7 @@ VERSION_CONTROL=numbered; export VERSION_CONTROL pwd=`pwd` tmp=same-f-$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0 trap 'exit $?' 1 2 13 15 framework_failure=0 -- cgit v1.2.3-70-g09d2