Revision 14772
Added by Aaron Marcuse-Kubitza over 10 years ago
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
lib/sh/util.sh: wildcard.(): clarified that it only removes . .. when at then beginning of the list