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)
Tue, Nov 19, 1:55 AM
Unknown Object (File)
Tue, Nov 19, 12:20 AM
Unknown Object (File)
Mon, Nov 18, 6:50 PM
Unknown Object (File)
Mon, Nov 18, 5:24 AM
Unknown Object (File)
Thu, Nov 14, 2:09 AM
Unknown Object (File)
Wed, Nov 13, 11:32 PM
Unknown Object (File)
Wed, Nov 13, 1:37 PM
Unknown Object (File)
Wed, Nov 13, 11:02 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 3364
Build 3401: 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)