Sadly no, it is not supposed to work. Quoting the manual:

Wildcarding is supported within a directory by using the SQLite glob function. 
The special glob characters are '*', '?', and '[]'. For example, "*.c" would 
match any .c file, "fo?.c" would match any 3-character .c file that has 'f' and 
'o' as the first two characters, and "fo[xyz].c" would match fox.c, foy.c, and 
foz.c. Globbing does not match directories, so "src/*.c" will work, but "*/*.c" 
will not. 

Le 9 novembre 2024 12:36:02 GMT+01:00, Sean Russell <[email protected]> a 
écrit :
>Hi
>
>I seem to be hitting all of the things at once. Note that this isn't about 
>recursive globbing.
>
>Should this rule work?
>
>   : foreach a/*/x.txt |> (more rule stuff)
>
>It isn't, for me. E.g.
>
>   mkdir -p test/a/b test/a/c
>   cd test
>   touch a/b/x.txt a/c/x.txt
>   tup init
>   echo ': foreach a/*/x.txt |> touch %o |> %g' > Tupfile
>   tup
>
>I'd expect b and c to be created; instead, I get the error:
>
>   Failed to f ind directory ID for dir a/*/x.txt' relative to '.'
> 
>Thanks
>
>-- 
>-- 
>tup-users mailing list
>email: [email protected]
>unsubscribe: [email protected]
>options: http://groups.google.com/group/tup-users?hl=en
>--- 
>You received this message because you are subscribed to the Google Groups 
>"tup-users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to [email protected].
>To view this discussion visit 
>https://groups.google.com/d/msgid/tup-users/fd64b9aa-2833-44e6-9a03-6f5bba5405d2n%40googlegroups.com.

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/tup-users/ACA6D602-8C87-428B-9DB6-61D44A2D017B%40gmail.com.

Reply via email to