Project

General

Profile

« Previous | Next » 

Revision 14772

lib/sh/util.sh: wildcard.(): clarified that it only removes . .. when at then beginning of the list

View differences:

trunk/lib/sh/util.sh
584 584
{ cmd=strip/ foreach_arg; esc "$@"; }
585 585

  
586 586
wildcard.() # usage: array=($(log++; [cd ...;] wildcard. unquoted_pattern...))
587
# currently only removes . .. at beginning of list
587
# currently only removes . .. when at then beginning of the list
588 588
{
589 589
	set -- $(wildcard/ "$@") # first strip trailing /s
590 590
	local to_rm=(. ..)

Also available in: Unified diff