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)
Thu, Aug 13, 12:28 PM
Unknown Object (File)
Tue, Aug 11, 10:57 PM
Unknown Object (File)
Sat, Aug 8, 3:38 PM
Unknown Object (File)
Fri, Aug 7, 5:04 AM
Unknown Object (File)
Sat, Jul 25, 11:16 AM
Unknown Object (File)
Jul 18 2026, 12:02 AM
Unknown Object (File)
Jul 12 2026, 9:14 AM
Unknown Object (File)
Jul 6 2026, 7:23 AM
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?