uutils/coreutils

Difference in offsets for `od --strings -N`

Open

#11,613 建立於 2026年4月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (23,246 star) (1,852 fork)batch import
U - odgood first issuereported-canonical-2

描述

This is a difference between uu od and GNU od, but uu's output is more reasonable. Should this be submitted to GNU coreutils' issue tracker?

root@b082d601e194:/tmp# od --version
od (GNU coreutils) 9.7
Packaged by Debian (9.7-3)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering.
root@b082d601e194:/tmp# printf "foo\0bar " | od --strings -N7
0000000 foo
root@b082d601e194:/tmp# printf "foo\0bar " | od --strings -N8
0000000 foo
0000003 bar
root@03081849be59:/tmp# od --version
od (uutils coreutils) 0.6.0
root@03081849be59:/tmp# printf "foo\0bar " | od --strings -N7
0000000 foo
0000004 bar
root@03081849be59:/tmp# printf "foo\0bar " | od --strings -N8
0000000 foo
0000004 bar

貢獻者指南