From a6feabfb8f9aa31107f162dbd47c4ec7201cf625 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 23 Nov 2025 19:43:24 +1030 Subject: [PATCH] replace tail with sed The default Solaris tail doesn't support "tail -n +4", apparently. Use sed instead. PR 33396 * testsuite/binutils-all/objdump.exp: Replace tail with an equivalent sed expression in dwarf5 objdump -Wi test. --- binutils/testsuite/binutils-all/objdump.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp index f3142b10442..5854c3d2e74 100644 --- a/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils/testsuite/binutils-all/objdump.exp @@ -595,7 +595,7 @@ if { ![is_elf_format] } then { send_log "\n" } - set got [remote_exec host "tail -n +4 tmpdir/objdump.out" "" "/dev/null" "tmpdir/objdump.tail"] + set got [remote_exec host {sed -e 1,3d tmpdir/objdump.out} {} /dev/null tmpdir/objdump.tail] set output [remote_upload host tmpdir/objdump.tail] if ![file size $output] then { -- 2.47.3