Berkeley CSUA MOTD:Entry 28920
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2003/7/3 [Computer/SW/Languages/Perl] UID:28920 Activity:nil
7/3     Cygwin on NT4 question: is there any way to make the following work?

        % ls -l s
        -rwxrwxrwx    1 joeuser  mkpasswd     7512 Jul  3 15:36 s*
        % perl -p -i -e 's/define/FOOO/g' s
        Can't do inplace edit on s: Permission denied.
        % ls -l s
        ls: s: No such file or directory
        So perl says it can't write to the file, but it can, and then it
        deletes it.  This happens on every file I've tried.  TIA.
        \_
        http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3DA606DD.EEA0B29C%40acm.org
Cache (149 bytes)
groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3DA606DD.EEA0B29C%40acm.org
Can't do inplace edit without backup You're on a system such as MS-DOS that gets con fused if you try reading from a deleted (but still opened) file.