Project

General

Profile

« Previous | Next » 

Revision 9559

bugfix: lib/sh/util.sh: func_override(): need to match shortest _* suffix instead of longest in case the function being overridden itself contained _

View differences:

lib/sh/util.sh
333 333
}
334 334

  
335 335
func_override() # usage: func_override old_name__suffix
336
{ from="${1%%__*}" to="$1" copy_func; }
336
{ from="${1%__*}" to="$1" copy_func; }
337 337

  
338 338
ensure_nested_func() # usage: func__nested_func() { ensure_nested_func; ... }
339 339
{

Also available in: Unified diff