Page MenuHomeFreeBSD

sed: add deprecation notice for -i .bak
Needs ReviewPublic

Authored by emaste on Mar 8 2021, 12:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 18, 12:02 AM
Unknown Object (File)
Sun, Jul 12, 9:14 AM
Unknown Object (File)
Mon, Jul 6, 7:23 AM
Unknown Object (File)
Jun 6 2026, 12:15 AM
Unknown Object (File)
May 30 2026, 5:06 AM
Unknown Object (File)
May 21 2026, 6:07 PM
Unknown Object (File)
May 11 2026, 8:51 AM
Unknown Object (File)
May 8 2026, 7:59 PM
Subscribers

Details

Reviewers
kevans
tobik
Summary

PR: 254091

Test Plan

Needs test suite update, posted for discussion.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
usr.bin/sed/main.c
142

I think the warning sounds like an error and it is not very clear that sed actually goes ahead and changes the file anyway.

val_packett.cool added inline comments.
usr.bin/sed/main.c
138

Hmm. Still considering -i '' non-deprecated — would that really facilitate a transition to the style everyone else uses?