News for hackers. Stuff that matters.
Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by kleene_op on Saturday March 26, 2022 @06:49AM (#30810749)
Probably something along the line of

  Popen(["the_tool"] + list(Path().glob("*.yml")))
Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by mannykannot on Saturday March 26, 2022 @08:57AM (#30811425)
This is reasonable in general, though in this case, I think this will replicate the problem of the second Bash version, as the problem there is with the_tool requiring at least one argument.

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.