On Wed, 14 Feb 2007, Nicolas Pitre wrote:Almost any "edit in place" operation under UNIX is invariably a question of "read old file + write new file + mv new old". As such, to be read-only for a lot of programs, you actually need to not just make the *file* read-only, you need to make the *directory* read-only too. Or you need to use only tools that explicitly check (a lot of editors will do that, for example, because in an RCS world you're supposed to do magic things to actually edit a file). So I'm not at all surprised that "-pi" (where the "i" stands for "in-place") will overwrite read-only files. I'm sure there is some random character that makes perl check, and not do it. Probably a sequence of unusual characters that makes it look like a swear-word. Maybe "perl -pi -%
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Yinghai Lu | [PATCH 01/33] x86: add after_bootmem for 32bit |
| Joerg Roedel | [PATCH] AMD IOMMU: replace to_pages macro with iommu_num_pages |
git: | |
| Jan Wielemaker | Re: git filter-branch --subdirectory-filter, still a mistery |
| Nguyễn Thái Ngọc Duy | [PATCH 01/14] Extend index to save more flags |
| davidk | Removing files |
| Guido Ostkamp | [PATCH] Fix "identifier redeclared" compilation error with SUN cc |
| David Miller | [GIT]: Networking |
| Lachlan Andrew | Re: [PATCH] tcp-illinois: incorrect beta usage |
| Julius Volz | [PATCHv2 RFC 01/25] IPVS: Add CONFIG_IP_VS_IPV6 option for IPv6 support |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Richard Stallman | Real men don't attack straw men |
| Greg KH | Re: Free Linux Driver Development! |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Mark Kettenis | Re: Random crashes with Intel D945GCLF2 |
