This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: perl -i is very dangerous !
- From: "Robinow, David" <drobinow at dayton dot adroit dot com>
- To: 'Marc Chantreux' <chantreux dot marc at wanadoo dot fr>, "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 3 May 2002 13:44:47 -0400
- Subject: RE: perl -i is very dangerous !
> -----Original Message-----
> From: Marc Chantreux [mailto:chantreux.marc@wanadoo.fr]
> Sent: Friday, May 03, 2002 12:10 PM
> To: cygwin-help@cygwin.com
> Subject: perl -i is very dangerous !
>
>
> mc@MILLENIUM:~/test/perldestroy# cat test.txt
> this is
> a test
> for cygwin
> mc@MILLENIUM:~/test/perldestroy# perl -i -ne 's/this/works/' test.txt
> Can't do inplace edit on test.txt: Permission denied.
> mc@MILLENIUM:~/test/perldestroy# ls
I posted a (backward!) patch for this behavior on Aug 9, 2001
http://sources.redhat.com/ml/cygwin/2001-08/msg00491.html
I also sent it to the perl maintainers, although I may not
sent it to the cygwin perl maintainer. Apparently it never
made it into the released package.
--
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/