Re: [PATCH 3/4] Use POSIX nm to simplify AIX export_symbols_cmds.
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.patches |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On 03/10/2016 04:29 AM, Peter Rosin wrote: >> + elif test "$lt_cv_nm_interface" = "POSIX nm"; then >> + symxfrm="\\2 $ac_symprfx\\1 \\1" >> + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^[[ ]]*$ac_symprfx$sympat[[ ]][[ ]]*\($symcode$symcode*\)[[ ]][[ ]]*.*$opt_cr$/$symxfrm/p'" > > Do you really need to handle leading and multiple whitespace here? > Posix, at least as seen here > http://pubs.opengroup.org/onlinepubs/009696699/utilities/nm.html > seems quite clear on no leading space and one space only as separator. No, POSIX states that " " means at least one whitespace (could be multiple; implementations can align at will), and "Δ" means exactly one space character. Since nm didn't use the delta character, the code is correct at looking for multiple whitespace. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap05.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
(application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJW4aQcAAoJEKeha0olJ0NqzpsH/iafJJmNJhgSNJA8d3CorRYH r2GOVec2zctG9trmwW0b5CrXBaDOAINoAInB/sA/yY89+tQjWpqqyYzRK4F3Tob1 /bcOecpqnCzLQ7xwv3t2twERuGibXUdqFubatfDfm9z/NMxv2N+i8AFEAg1HgdL6 wkpV09YHBSiS9foCyjzOIicqXuPhYxvyMMfdMJZBu5A/9zZASUkX6JDFf/mLV4xl lLgJ0YhWFz4PaxNnTGlC6jutbJ1GIKIOlEgqRPfGEoRA56P2ndIGuDDV7Fj5WRDN 05UAz4bZegVoXJBs7PepAkzXsWxx57UZ7AcAUwTPpZlDP0vE5jsjknporJ+Pnuw= =tnMH -----END PGP SIGNATURE-----