bash folding on {}