]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
replace tail with sed
authorAlan Modra <amodra@gmail.com>
Sun, 23 Nov 2025 09:13:24 +0000 (19:43 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 24 Nov 2025 21:20:17 +0000 (07:50 +1030)
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

index f3142b104425f4d129508f92d6562375aaefc8cc..5854c3d2e7404a770d8419a6bcdf3b82134a92e9 100644 (file)
@@ -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 {