This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hopeful patch for configure breakage


Using (ef)grep on binary data is asking for trouble.

>From the Solaris man page for egrep:

  NOTES
    /usr/xpg4/bin/egrep
       The   /usr/xpg4/bin/egrep    utility   is    identical    to
       /usr/xpg4/bin/grep   -E (see grep(1)). Portable applications
       should use /usr/xpg4/bin/grep  -E.

>From the Solaris man page for grep:

  NOTES
    /usr/xpg4/bin/grep
       The results are unspecified if  input  files  contain  lines
       longer  than LINE_MAX bytes or contain binary data. LINE_MAX
       is defined in /usr/include/limits.h.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]