URL:
<http://savannah.gnu.org/bugs/?35410>
Summary: [patch] Fix a bug with filter/filter-out functions
when pattern contains only quoted percents
Project: make
Submitted by: abusalimov
Submitted on: Mon 30 Jan 2012 11:41:08 PM GMT
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: CVS
Operating System: Any
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Literal pattern containing quoted percents (without any operative ones) does
not match any word.
# Expected to return 'foo%bar', but returns nothing.
$(filter foo\%bar,foo%bar)
This happens because after calling 'find_percent' function the string length
can decrease, but pattern matching code for literals uses old value of the
length.
The attached patch also removes a code used to restore whitespaces inside the
first argument as far as arguments are always get freed after calling a
function handler anyway.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 30 Jan 2012 11:41:08 PM GMT Name: func_filter.patch Size: 991B
By: abusalimov
patch against CVS HEAD
<http://savannah.gnu.org/bugs/download.php?file_id=24928>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35410>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make