Re: sed -i has difficulty with read-only files

2002-07-29 Thread Tony Finch
On Sat, Jul 27, 2002 at 07:12:24AM +0200, Cyrille Lefevre wrote: IMHO, both the old and the newer code are wrong. they should use getenv(TMPDIR) if any and certainly not the current directory. there is probably more room in ${TMPDIR:-/var/tmp} then in the current directory. imagine that the

Re: sed -i has difficulty with read-only files

2002-07-29 Thread Tony Finch
Updated patches. I still prefer the one that's 40 lines shorter :-) Tony. -- f.a.n.finch [EMAIL PROTECTED] http://dotat.at/ SOUTHEAST ICELAND: SOUTHWEST BECOMING VARIABLE 4. FAIR. GOOD. --- main.c Mon Jul 29 13:16:44 2002 +++ main.c.two Mon Jul 29 13:08:49 2002 @@ -413,9 +413,7 @@

Re: sed -i has difficulty with read-only files

2002-07-27 Thread Dan Nelson
In the last episode (Jul 27), Cyrille Lefevre said: IMHO, both the old and the newer code are wrong. they should use getenv(TMPDIR) if any and certainly not the current directory. there is probably more room in ${TMPDIR:-/var/tmp} then in the current directory. imagine that the current fs is

Re: sed -i has difficulty with read-only files

2002-07-27 Thread Cyrille Lefevre
On Sat, Jul 27, 2002 at 03:18:24PM -0500, Dan Nelson wrote: In the last episode (Jul 27), Cyrille Lefevre said: IMHO, both the old and the newer code are wrong. they should use getenv(TMPDIR) if any and certainly not the current directory. there is probably more room in ${TMPDIR:-/var/tmp}

Re: sed -i has difficulty with read-only files

2002-07-26 Thread Cyrille Lefevre
On Fri, Jul 26, 2002 at 04:50:21PM +0100, Tony Finch wrote: [snip] Comments, opinions? I'd like to commit patch two if it works satisfactorily, otherwise I'll commit patch one. Patch one: --- main.cFri Jul 26 15:19:06 2002 +++ main.c.oneFri Jul 26 14:44:48 2002 @@ -407,6