| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <80575AFA5F0DD31197CE00805F650D7602CFAA@wilber.adroit.com> |
| From: | "Robinow, David" <drobinow AT dayton DOT adroit DOT com> |
| To: | "'cygwin'" <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | RE: unlink() problem |
| Date: | Wed, 8 Aug 2001 16:36:33 -0400 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.5.2650.21) |
> From: John Wiersba [mailto:John DOT Wiersba AT medstat DOT com]
> Subject: RE: unlink() problem
> Thanks for your reply, Larry. Unfortunately, this is a bad bug since the
> simple perl script below removes the original file (whoops!) since it
> assumes that if you have permission to unlink the original file, then you
> have permission to create a new file of the same name (I believe this is
> always true on unix). The net result is that you lose your data.
>
> I can't think of anyway around it except to know that you can't do inplace
> editing on cygwin.
>
> -- John Wiersba
> > >$ touch asdf
> > >$ perl -i -pe 1 asdf
> > >Can't do inplace edit on asdf: Permission denied.
But using ActiveState perl,
D:\home>perl -i -pe 1 asdf
Can't do inplace edit without backup.
and the file's not clobbered.
Time to look at the perl source code.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |