3 ms·
Also, how much code would it take to do the same thing in python?
by raffraffraff 5y ago
Also, how much code would it take to do the same thing in python?
- kleene_op 5y agoProbably something along the line of Popen(["the_tool"] + list(Path().glob("*.yml")))
- deleted 5y ago[deleted]
- mannykannot 5y agoThis 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.