Re: [PATCH] locking/atomics: Use sed(1) instead of non-standard head(1) option
From: Will Deacon
Date: Tue Jun 18 2019 - 08:21:30 EST
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>
Will