There is an option (-i) with newer sed programs that will make sed edit the file in place. Eliminates a couple lines of code in dosed.
Created attachment 100056 [details] dosed which edits the target file in place
this was done on purpose because -i isnt posix, but i think we're to the point now where so many ebuilds use it that sed-4 w/-i support is a hard requirement so patch should be fine
Thanks, it now uses sed -i in svn r4762.
Zach, your applied patch is wrong: sed -ie "${mysed}" "${y}" This means all files that you touch get backupped with "e" as extension. Either use -i -e or -ei as in the original patch.
Thanks, now I have `sed -i -e "${mysed}" "${y}"` in svn r4763.
(In reply to comment #4) > Zach, your applied patch is wrong: > sed -ie "${mysed}" "${y}" > > This means all files that you touch get backupped with "e" as extension. > Either use -i -e or -ei as in the original patch. > I apologize for this. I had other changes in dosed that I pulled out because I thought they were too radical and I obviously didn't test the final version which I ended up posting. Tim
This has been released in 2.1.2_pre3-r6.