Re: sed -i

2015-07-17 Thread Jérémie Courrèges-Anglas
Jasper Lievisse Adriaanse writes: > Hi, > > Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly > from FreeBSD with some adjustments to prevent a race with unlink() and fopen() > during the tempfile creation. > > It's been tested in a full ports bulk (thanks aja), and went

Re: sed -i

2015-07-17 Thread Alexander Schrijver
On Fri, Jul 17, 2015 at 06:10:46PM +0200, Jasper Lievisse Adriaanse wrote: > Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly > from FreeBSD with some adjustments to prevent a race with unlink() and fopen() > during the tempfile creation. \o/

Re: sed -i

2015-07-17 Thread Brian Callahan
On 07/17/15 13:51, Antoine Jacoutot wrote: > On Fri, Jul 17, 2015 at 12:57:12PM -0400, Brian Callahan wrote: >> >> >> On 07/17/15 12:10, Jasper Lievisse Adriaanse wrote: >>> Hi, >>> >>> Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly >>> from FreeBSD with some adjustmen

Re: sed -i

2015-07-17 Thread Antoine Jacoutot
On Fri, Jul 17, 2015 at 12:57:12PM -0400, Brian Callahan wrote: > > > On 07/17/15 12:10, Jasper Lievisse Adriaanse wrote: > > Hi, > > > > Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly > > from FreeBSD with some adjustments to prevent a race with unlink() and > > fop

Re: sed -i

2015-07-17 Thread Robert Peichaer
On Fri, Jul 17, 2015 at 06:10:46PM +0200, Jasper Lievisse Adriaanse wrote: > Hi, > > Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly > from FreeBSD with some adjustments to prevent a race with unlink() and fopen() > during the tempfile creation. > > It's been tested in

Re: sed -i

2015-07-17 Thread Brian Callahan
On 07/17/15 12:10, Jasper Lievisse Adriaanse wrote: > Hi, > > Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly > from FreeBSD with some adjustments to prevent a race with unlink() and fopen() > during the tempfile creation. > > It's been tested in a full ports bulk (th

sed -i

2015-07-17 Thread Jasper Lievisse Adriaanse
Hi, Here's a diff to add the '-i' flag to sed to do inplace edits. It's mostly from FreeBSD with some adjustments to prevent a race with unlink() and fopen() during the tempfile creation. It's been tested in a full ports bulk (thanks aja), and went through a build of base and xenocara. Regress te