Page MenuHomeFreeBSD

Finish sdiff(1) from soc 2012
AbandonedPublic

Authored by bapt on Apr 16 2016, 10:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 8:10 AM
Unknown Object (File)
Wed, Apr 17, 8:09 AM
Unknown Object (File)
Feb 23 2024, 10:45 PM
Unknown Object (File)
Feb 16 2024, 8:13 PM
Unknown Object (File)
Dec 25 2023, 4:50 AM
Unknown Object (File)
Dec 22 2023, 10:46 PM
Unknown Object (File)
Dec 20 2023, 5:01 AM
Unknown Object (File)
Oct 15 2023, 12:19 AM
Subscribers

Details

Reviewers
emaste
des
Group Reviewers
manpages
Summary

During the GSoC 2012, Jesse Hagewood worked on text processing tools.

I have extracted from that summer of code the sdiff(1) part and tried to finish
it.

I have also imported the regression tests from NetBSD and modified them match
what the GNU version is really producing

Compared to the summer of code, I have fixed the z version of sdiff
Finished fixing the "column" output vs gnu diff (which makes it different from
OpenBSD and NetBSD)

Added the '(' that gnu sdiff shows when only printing the left column

The last difference with GNU sdiff that I do not plan to fix the fact that this
version padds using spaces while GNU sdiff pads using tabs (I honnestly prefer
the current behaviour and visually there is no differences)

Tested and compared against gnu sdiff as in base

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningusr.bin/sdiff/tests/sdiff.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 3365
Build 3402: arc lint + arc unit

Event Timeline

bapt retitled this revision from to Finish sdiff(1) from soc 2012.
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added reviewers: emaste, des.

Note that I'm not sure the zsdiff is really useful, but anyway it was there :)

usr.bin/sdiff/Makefile
8

:(

usr.bin/sdiff/decompress.c
67 ↗(On Diff #15272)

What's the \2?

73 ↗(On Diff #15272)

Should check be for null term here?

bapt edited edge metadata.

Remove zsdiff, it is not worth adding it

bapt edited edge metadata.

Reduce diff with OpenBSD and NetBSD

bapt marked an inline comment as done.Apr 18 2016, 9:31 PM

Do you mind regenerating the OpenBSD/NetBSD diff after the recent update?

Do you mind regenerating the OpenBSD/NetBSD diff after the recent update?

regenerated and added to phabricator:

https://reviews.freebsd.org/D6032

and

https://reviews.freebsd.org/D6033

bapt edited edge metadata.

Reduce a bit more diff with openbsd and exit 2 in case of failures

bapt edited edge metadata.

More exit(2)