[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] Keep executability of config.status-ed files
From: |
Bob Friesenhahn |
Subject: |
Re: [patch] Keep executability of config.status-ed files |
Date: |
Wed, 10 Dec 2003 12:11:50 -0600 (CST) |
On Wed, 10 Dec 2003, Eric Sunshine 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. At worst, you will simply lose the contents of
> FILE (for the same reason). In my experiments, the latter occurred.
Not true.
cp FILE.in FILE
sed -e 'blah' < FILE.in > FILE
does not hold FILE open. The issue that FILE.in is read-only still
remains.
Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen
- Re: [patch] Keep executability of config.status-ed files, (continued)
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Jan Kratochvil, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Akim Demaille, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Paul Jarc, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files,
Bob Friesenhahn <=
- Re: [patch] Keep executability of config.status-ed files, Bob Friesenhahn, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Akim Demaille, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Bob Friesenhahn, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Jan Kratochvil, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Bob Friesenhahn, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Paul Jarc, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Paul Jarc, 2003/12/10
- Re: [patch] Keep executability of config.status-ed files, Eric Sunshine, 2003/12/10