This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: perl -i is very dangerous !
- From: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 3 May 2002 20:16:23 +0200
- Subject: Re: perl -i is very dangerous !
- Organization: don't eat dead animals
- References: <3CD2B64F.5090005@wanadoo.fr>
- Reply-to: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
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/