Portable (cartesian) brace expansion in your shell

5 points by mqudsi


LeahNeukirchen

This doesn't work at all, and neither is a proper cartesian product of two sets...

tmcb

Bash at least also supports empty values in the expansion. I use it all the time to create backups with mv file{,.old}.

jmtd

I’d like to try {mkdir,chown,chmod} /var/log/{foo,bar,baz}