Bug 244872 (sed-f-) - Read commands from stdin when -f - is passed to sed(1)
Summary: Read commands from stdin when -f - is passed to sed(1)
Status: Open
Alias: sed-f-
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mateusz Piotrowski
URL: https://reviews.freebsd.org/D24079
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2020-03-17 22:29 UTC by Mateusz Piotrowski
Modified: 2020-04-15 13:34 UTC (History)
3 users (show)

See Also:
antoine: exp-run+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer 2020-03-17 22:29:42 UTC
This patch teaches sed to interpret the a file name of "-" in
a special way when given to the -f flag. 

This behavior is present in GNU sed.

pfg@ suggested in the Phabricator review to request an exp-run for this change.

Phabricator:
https://reviews.freebsd.org/D24079
Comment 1 Antoine Brodin freebsd_committer 2020-03-22 22:03:15 UTC
This patch does not apply
Comment 2 Mateusz Piotrowski freebsd_committer 2020-03-23 13:09:03 UTC
Hmm, this is unexpected. 

Nevertheless, I've rebased on the patches on latest head and uploaded them again.

Also, here are the the same patches but in my FreeBSD tree on GitHub:
https://github.com/0mp/freebsd/commits/0mp/sed_-f_-
Comment 3 Antoine Brodin freebsd_committer 2020-04-09 07:32:35 UTC
Exp-run looks fine
Comment 4 Mateusz Piotrowski freebsd_committer 2020-04-09 09:57:25 UTC
Wonderful news! Thanks a lot!