Re: [PATCH] locking/atomics: Use sed(1) instead of non-standard head(1) option
From: Peter Zijlstra
Date: Tue Jun 18 2019 - 08:58:10 EST
On Tue, Jun 18, 2019 at 01:16:25PM +0100, Will Deacon wrote:
> On Mon, Jun 17, 2019 at 10:33:06PM -0700, Michael Forney wrote:
> > POSIX says the -n option must be a positive decimal integer. Not all
> > implementations of head(1) support negative numbers meaning offset from
> > the end of the file.
> > Instead, the sed expression '$d' has the same effect of removing the
> > last line of the file.
> > Signed-off-by: Michael Forney <mforney@xxxxxxxxxxx>
> > ---
> > scripts/atomic/check-atomics.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> Acked-by: Will Deacon <will.deacon@xxxxxxx>