[PATCH] Use POSIX standardized options for head(1) and tail(1)

Darren Tucker dtucker at dtucker.net
Sat May 2 18:49:07 AEST 2020


On Fri, 1 May 2020 at 18:19, Michael Forney <mforney at mforney.org> wrote:
> On 2020-04-30, Mark D. Baushke <mdb at juniper.net> wrote:
> > Michael Forney said that he was trying to run on a system that did NOT
> > support head -number and tail +number old-style format.
>
> The tail implementation I'm using is from sbase. It does support the
> old-style -number, but not +number.
[...]
> I don't think this would be necessary. The 'depend' rule is usually
> only used by the openssh developers to regenerate .depend, so it
> really only needs to work on the systems they are using. I only ran it
> because I was experimenting with some local changes and wanted to
> update .depend.

I admit that I didn't put any thought into the portability of those
lines because I didn't expect anyone else to ever use them.  Anyway it
turns out "#" sorts asciibetically[1] before any of our source files,
so I've just removed the invocations of tail.

[1] anyone running "make depend" after adding a file named "!anything"
or on an EBCDIC platform is on their own.

-- 
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list