uutils/coreutils

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

Open

#11 613 ouverte le 3 avr. 2026

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Rust (1 852 forks)batch import
U - odgood first issuereported-canonical-2

Métriques du dépôt

Stars
 (23 246 stars)
Métriques de merge PR
 (Merge moyen 9j 14h) (216 PRs mergées en 30 j)

Description

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

Guide contributeur