Project

General

Profile

« Previous | Next » 

Revision 11456

bugfix: bin/with_all: @inputs default value: use `local`, so that the default value is only set for the current function and doesn't leak back out into the caller. this fixes a bug in subset imports where import_all's Source/import call to with_all would add the .* datasources, but these would then stay in for the import_scrub call, causing extra .* datasources to incorrectly be imported.

View differences:

with_all
14 14
make_target [vars...] (note initial \".\")"|fold -s >&2
15 15
        return 2
16 16
    fi
17
    if test ! "${inputs+isset}"; then inputs=(inputs/*/); fi
18
    if test "$hidden_srcs"; then inputs=(inputs/.[^as.]*/ "${inputs[@]}"); fi
19
        # not . .. .svn .archive
17
    if test ! "${inputs+isset}"; then local inputs=(inputs/*/); fi
18
    if test "$hidden_srcs"; then local inputs=(inputs/.[^as.]*/ "${inputs[@]}")
19
    fi # not . .. .svn .archive
20 20
    
21 21
    for input in "${inputs[@]}"; do
22 22
        eval "yes|make ${input}$* &"

Also available in: Unified diff