This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl -i is very dangerous !


Marc schrieb:

> 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


> any idea ?

It is gone.

Use perl -i.bak instead.

Gerrit
-- 
=^..^=


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]