uutils/coreutils

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

已关闭

#11,613 创建于 2026年4月3日

 (3 条评论) (0 个反应) (0 位负责人)Rust (2,003 个派生)batch import
U - odgood first issuereported-canonical-2

仓库指标

星标
 (23,984 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南