sed leaving temporary files behind

da via Bug reports for the GNU utilities <[email protected]> Tue, 22 Feb 2022 09:29:52 +0000 (UTC)
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Hi,I'm using gnu win32 ver=C2=A04.2.1 of sed.When using -i option, sed alwa=
ys leaves behind temporary files named sed* in the directory where it's bei=
ng called. (ie. NOT in the directory where the edited file resides.)Each su=
ccessful run leaves 1 temp file behind.
When I supply a file extension using -itmp, the expected file backup gets c=
reated in the directory where the edited file resides. The temporary files =
are still left over in the execution directory.
>dir sed*
=C2=A0Directory of C:\GitHub\merlin-etl\merlinDBScripts\dbChanges\sql\prod
File Not Found
>sed -i "s/ad/asdf/" \temp\1.csv
>dir sed*
=C2=A0Directory of C:\GitHub\merlin-etl\merlinDBScripts\dbChanges\sql\prod
22. 02. 2022=C2=A0 10:28=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 47 sedhJDLA6=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01=
 File(s)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A047 bytes=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 Dir(s)=C2=A0 173 949 931 520=
 bytes free

Thank you,Daniel Adam