From a60d612e43bc14ce43ece5f135e3be711b966cee Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 May 2001 10:35:06 +0000 Subject: Workaround rm -f hang on unwriteable file in Cygwin --- Test/C02cond.ztst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Test/C02cond.ztst') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index ee502d303..2e640f568 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -19,8 +19,6 @@ chmod u+s modish chmod +t modish - touch unmodish - chmod 000 unmodish %test [[ -a zerolength && ! -a nonexistent ]] @@ -70,7 +68,11 @@ [[ -p pipe && ! -p zerolength ]] 0:-p cond + touch unmodish + chmod 000 unmodish [[ -r zerolength && ! -r unmodish ]] + # This works around a bug in rm -f in some versions of Cygwin + chmod 644 unmodish 0:-r cond [[ -s nonzerolength && ! -s zerolength ]] -- cgit 1.4.1