Should the globstar (**) syntax allow for partial parameter matching
(i.e. **.c to find all *.c files in the current directory and its sub-
directories)?

Currently this can be implemented like this:
for i in **; do if [[ ${i} =~ \.c$ ]]; then <my_operation>; fi; done

It would be pleasantly convenient if this were condensed to:
for i in **.c; do <my_operation>; done

Or even:
<my_operation> **.c

With 'shopt -s globstar', I think that the syntax:
<my_operation> **/*.c

accomplishes the same goal, but I'm not sure it's 'correct'.

Thanks!

Reply via email to