[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190618121625.GC31041@fuggles.cambridge.arm.com>
Date: Tue, 18 Jun 2019 13:16:25 +0100
From: Will Deacon <will.deacon@....com>
To: Michael Forney <mforney@...rney.org>
Cc: Peter Zijlstra <peterz@...radead.org>,
Boqun Feng <boqun.feng@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] locking/atomics: Use sed(1) instead of non-standard
head(1) option
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@...rney.org>
> ---
> scripts/atomic/check-atomics.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Will Deacon <will.deacon@....com>
Will
Powered by blists - more mailing lists