Timeline for Is there a way to make perl -i not clobber symlinks?
Current License: CC BY-SA 2.5
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 16, 2011 at 0:42 | comment | added | imz -- Ivan Zakharyaschev | @mattdm: Yes, thanks for the confirmation! (I noticed your words "that works" a bit later than I wrote my comment.) | |
| Mar 16, 2011 at 0:38 | comment | added | mattdm |
— yes, I tried it before replying. When file in your example above is a symlink, the link is left alone and the real file changed.
|
|
| Mar 16, 2011 at 0:28 | comment | added | imz -- Ivan Zakharyaschev |
But have you tested sponge for such a usage in practice? As for me: not yet. Could you please leave a comment stating whether it behaved in a test the way wanted here? Oh, I see the comment. Thanks for the confirmation!
|
|
| Mar 16, 2011 at 0:26 | comment | added | mattdm | Hey cool, that works. I suspect Gilles's comment above is the "real" answer, but since he didn't make it as an answer, and since I learned a new utility, I'll take this one. :) | |
| Mar 16, 2011 at 0:24 | vote | accept | mattdm | ||
| Mar 16, 2011 at 0:05 | history | answered | imz -- Ivan Zakharyaschev | CC BY-SA 2.5 |