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, May 21, 6:07 PM
Unknown Object (File)
Mon, May 11, 8:51 AM
Unknown Object (File)
Fri, May 8, 7:59 PM
Unknown Object (File)
Apr 24 2026, 9:39 PM
Unknown Object (File)
Apr 23 2026, 10:02 PM
Unknown Object (File)
Apr 19 2026, 10:20 AM
Unknown Object (File)
Jan 31 2026, 7:07 AM
Unknown Object (File)
Jan 24 2026, 6:11 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?