I would expect these commands to behave identically:
# 1
python3 scripts/{01,02}*.py
# 2
for script in scripts/{01,02}*.py; python3 $script; end
The fact that #1 returns a single line if run with echo
instead and #2 returns two makes me believe that there is a difference. The second version works, the first only runs the first script.
Why is that?