serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Userland: `sed` not POSIX compatible

Open cofinalsubnets opened this issue 1 month ago • 1 comments

sed replace is a wrapper around LibRegex replace which doesn't recognize & in replacements. There may be other differences from Posix, I haven't checked exhaustively. In the interest of offering a fix i'd like to request opinions

  • should LibRegex replace act like sed by default?
  • if not, should this behavior be covered under an existing regex posix option flag or a new one?

cofinalsubnets avatar Nov 24 '25 18:11 cofinalsubnets

@alimpfard

nico avatar Nov 24 '25 19:11 nico