To add to the Brace Expansion section: When multiple brace expansions are separated by unescaped space, the result is their concatenation. Otherwise the result is their cartesian product.
By example: echo {a,b,c,d} {1,2,3,4} yields concatenation a b c d 1 2 3 4 whereas echo {a,b,c,d},{1,2,3,4} yields a cartesian product a,1 b,1 c,1 d,1 a,2 b,2 c,2 d,2 a,3 b,3 c,3 d,3 a,4 b,4 c,4 d,4 and echo {a,b,c}" "{1,2,3} echo {a,b,c}' '{1,2,3} echo {a,b,c}\ {1,2,3} yield a cartesian product because the space is escaped a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3 This feature works on more than two adjacent brace expansions. By example: echo {a,b,c}{1,2,3}{A,B,C} yields a1A b1A c1A a2A b2A c2A a3A b3A c3A a1B b1B c1B a2B b2B c2B a3B b3B c3B a1C b1C c1C a2C b2C c2C a3C b3C c3C ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users