Page MenuHomeFreeBSD

sed.1: provide more information on -I and -i
Needs RevisionPublic

Authored by emaste on Mar 8 2021, 2:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:10 AM
Unknown Object (File)
Nov 21 2024, 6:33 AM
Unknown Object (File)
Nov 20 2024, 7:05 AM
Unknown Object (File)
Nov 5 2024, 5:18 PM
Unknown Object (File)
Nov 5 2024, 5:17 PM
Unknown Object (File)
Nov 3 2024, 12:43 PM
Unknown Object (File)
Oct 17 2024, 4:39 PM
Unknown Object (File)
Oct 15 2024, 10:21 PM
Subscribers

Details

Reviewers
kevans
tobik
gbe
0mp
Group Reviewers
manpages
Summary

For compatibility with other versions of sed (GNU and other BSDs) there should be no space between -I or -i, and the backup extension. The extension is an optional argument with these other sed versions, and "-I .bak" is interpreted as a no-argument (no backup) -I flag, followed by an invalid command ".bak".

Clarify -I "" as a special case to specify no backup that is not compatible with other sed versions.

PR: 254091

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste requested review of this revision.Mar 8 2021, 2:14 PM
emaste created this revision.
gbe added a subscriber: gbe.

LGTM from manpages. Thanks for working on this PR.

This revision is now accepted and ready to land.Mar 11 2021, 5:57 PM
0mp requested changes to this revision.Apr 18 2021, 1:55 PM
0mp added a subscriber: 0mp.
0mp added inline comments.
usr.bin/sed/sed.1
118

I think that we usually try to avoid "you" in docs.

124

This should probably be:

.Fl i Cm \&"" .

This way "" is stylized as a command modifier.

This revision now requires changes to proceed.Apr 18 2021, 1:55 PM