On Sat, 2022-12-24 at 11:32 -0500, Paul Smith wrote: > On Thu, 2022-12-22 at 18:17 +0100, Giangiacomo Zaffini wrote: > > C:\Users\gzaff\scoop\apps\sed\current\sed.exe: -e expression #4, > > char 9: unterminated `s' command > > Interestingly, this works fine [for me] and the replacement version > you suggest shows an error: > > sed: -e expression #4, char 7: unterminated `s' command > > Note I am running this in cmd.exe. Maybe you are running in > PowerShell and the quoting is different, or something?
Nope, I get the same behavior with PowerShell. Maybe it's something to do with the versions of sed we are using? I don't know how to fix this problem but since your change makes the script fail in my environment, and I can't make your change work in my environment, I'll have to wait for someone to provide more information on what the real issue is before I modify anything.