[Top][All Lists]

[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


            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)

   '-n 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:

   -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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]