|
From: | Paul Jarc |
Subject: | Re: [patch] Keep executability of config.status-ed files |
Date: | Wed, 10 Dec 2003 13:11:38 -0500 |
User-agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Eric Sunshine <address@hidden> wrote: > Akim Demaille wrote: >> How about cp FILE.in FILE and then perform the transformation from >> FILE.in's contents to (>) FILE? > > This will not work correctly on Windows. At best, it will throw an > error because FILE is locked (being read by sed) while the > is trying > to open it for writing. FILE wouldn't be read by sed; FILE.in would. cp FILE.in FILE # for permissions (use -p?) sed '...' < FILE.in > FILE # for content paul
[Prev in Thread] | Current Thread | [Next in Thread] |