in reply to Re^3: How does rename() work on read-only files?
in thread How does rename() work on read-only files?
The fact that tchrist's file-dir-perms doc is now relegated to a tarball in the olddoc tree does suggest that it is only kept for historical interest, despite the link from perlfaq5.
Good tidbit hippo! One more question, could you please tell me if that's also a mistake? From file-dir-perms:
What happens when you try to do this? perl -i.bak -pe 1 alpha/bar Well, you seem to think you shouldn't be able to rename it because it's mode 0555, readonly. But that's irrelevant. It's the diretory that matters. So it succeeds.
The previous command actually operates on alpha (0755) and on bar (0444). Why did he refer to beta (0555) here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How does rename() work on read-only files?
by hippo (Archbishop) on Dec 12, 2018 at 09:26 UTC | |
by j41r (Beadle) on Dec 12, 2018 at 09:51 UTC |