Also, how much code would it take to do the same thing in python?
Popen(["the_tool"] + list(Path().glob("*.yml")))While dethanatos's point about Bash's default behavior with a non-matching glob is on target, the remainder of the example demonstrates a problem in the_tool, which will need to be worked around regardless of how you invoke it.