# basic expansion test
echo {}
echo {apple}
echo {apple,orange}

# expansion tests with spaces
echo {apple, orange}
echo { apple, orange, banana }

# expansion with spaces and cartesian products
echo \'{ hello , world }\'

# expansion with escapes
for phrase in {good\,,   beautiful ,morning}; echo -n "$phrase "; end | string trim;
for phrase in {goodbye\,,\ cruel\ ,world\n}; echo -n $phrase; end;

# dual expansion cartesian product
echo { alpha, beta }\ {lambda, gamma }, |  string replace -r ',$' ''

# expansion with subshells
for name in { (echo Meg), (echo Jo) }
	echo $name
end

# subshells with expansion
for name in (for name in {Beth, Amy}; printf "$name\n"; end); printf "$name\n"; end

echo {{a,b}}
# vim: set ft=fish:
