I'm using Cygwin 1.7.x.
Every time the rm command is used Cygwin creates .cyg000 files. I have found only
one person addressing the issue. Apparently there is some kind of behavior in Cygwin that acts like a pseudo trash bin. The problem is these files don't disappear when the Cygwin session is terminated.
How to stop these files from being created or delete them as quickly as possible. I am trying to deploy Cygwin in an enterprise network and I can't have these pseudo trash files all over the place. I don't want any kind of trash bin behavior.
Deleting them from within Cygwin is impossible because the rm command is what creates the files. Something in Cygwin intercepts the rm command and is moving files rather than actually deleting.
The following command in a batch script does not seem to work:
For /f "tokens=*" %%i in ('dir "S:\.cyg000*" /A:H /B') Do (rmdir /s /q "S:\%%i")
I won't pretend to be an expert in batch file programming and any help is appreciated.
I need to keep this as simple as possible --- no third party tricks.
The ideal solution is something in Cygwin that can be configured to stop this behavior.
Any ideas?
Thanks much!