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.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to