Page MenuHomeFreeBSD

head(1): Provide long options
ClosedPublic

Authored by kevans on Jan 31 2018, 4:08 AM.
Tags
None
Referenced Files
F82161615: D14139.diff
Fri, Apr 26, 2:01 AM
Unknown Object (File)
Mar 16 2024, 7:48 PM
Unknown Object (File)
Dec 20 2023, 3:42 AM
Unknown Object (File)
Nov 10 2023, 6:38 PM
Unknown Object (File)
Nov 6 2023, 7:38 PM
Unknown Object (File)
Nov 5 2023, 6:09 AM
Unknown Object (File)
Nov 2 2023, 6:28 AM
Unknown Object (File)
Oct 20 2023, 10:04 PM
Subscribers

Details

Summary

Provide long options --bytes and --lines to match -c and -n respectively. This improves head(1)'s compatibility with its GNU counterpart in a sensible way.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

don't forget to include "added description of options" or whatnot into the commit log

This revision is now accepted and ready to land.Jan 31 2018, 4:11 AM
head/head.1
51 ↗(On Diff #38698)

I think this might be a bit clumsy in conjunction with the above paragraph, but I was unsure of how to rephrase the above paragraph.

Love the idea of the change. Have a couple of silly quibbles to make it better.

head/head.1
42–62 ↗(On Diff #38698)

This whole thing should be rewritten, I fear. -n and --bytes; and -n and --lines should be documented together. This will make it a little longer, but not unreasonably so.

Also, other man pages use Fl -long for the long options. So this is inconsistent. I know not which one is more proper since I can make a case both ways....

head/head.c
66 ↗(On Diff #38698)

usage wasn't updated.

head/head.1
42–62 ↗(On Diff #38698)

I'm afraid I'm not quit grokking your recommendation here, but that might be because it's late. =)

I'm assuming you meant -c and --bytes, -n and --lines, but I'm not sure if you're proposing not using this list format or something else. The respective options are documented together as it is.

I do have an updated version that uses Fl -long, since that looks a lot better.

This revision was automatically updated to reflect the committed changes.