mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
Workaround rm -f hang on unwriteable file in Cygwin
This commit is contained in:
parent
221d096ed8
commit
a60d612e43
2 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2001-05-21 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 14408: Test/C02cond.ztst: do chmod +w to work around rm -f
|
||||
problem in Cygwin.
|
||||
|
||||
* unposted: Test/.distfiles: add Test/E01options.ztst.
|
||||
|
||||
2001-05-20 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
|
|
|||
|
|
@ -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 ]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue