[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28632] New: 'strings --help' talks about zero-terminated s
From: |
g.brandl at gmx dot net |
Subject: |
[Bug binutils/28632] New: 'strings --help' talks about zero-terminated strings |
Date: |
Sun, 28 Nov 2021 17:40:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28632
Bug ID: 28632
Summary: 'strings --help' talks about zero-terminated strings
Product: binutils
Version: 2.37
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: g.brandl at gmx dot net
Target Milestone: ---
The --help output of strings (version 2.37) says:
-n --bytes=[number] Locate & print any NUL-terminated sequence of at
-<number> least [number] characters (default 4).
However, the info-page states correctly:
For each FILE given, GNU 'strings' prints the printable character
sequences that are at least 4 characters long (or the number given with
the options below) and are followed by an unprintable character.
(and later)
'-MIN-LEN'
'-n MIN-LEN'
'--bytes=MIN-LEN'
Print sequences of characters that are at least MIN-LEN characters
long, instead of the default 4.
which does not imply NUL termination, and I also don't see NUL termination
being a requirement for 'strings' recognizing strings.
PS: in the comment at the top of strings.c, even another version can be found:
--bytes=min-len
-n min-len
-min-len Print graphic char sequences, MIN-LEN or more bytes long,
that are followed by a NUL or a newline. Default is 4.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28632] New: 'strings --help' talks about zero-terminated strings,
g.brandl at gmx dot net <=
- [Bug binutils/28632] 'strings --help' talks about zero-terminated strings, cvs-commit at gcc dot gnu.org, 2021/11/29
- [Bug binutils/28632] 'strings --help' talks about zero-terminated strings, nickc at redhat dot com, 2021/11/29
- [Bug binutils/28632] 'strings --help' talks about zero-terminated strings, g.brandl at gmx dot net, 2021/11/29
- [Bug binutils/28632] 'strings --help' talks about zero-terminated strings, cvs-commit at gcc dot gnu.org, 2021/11/29
- [Bug binutils/28632] 'strings --help' talks about zero-terminated strings, nickc at redhat dot com, 2021/11/29