Looking for a breakdown of echo{,} foo

Viewed 103

How does the expression {,} work?

I tried searching around SOF as well as on google and even the man pages for bash, yet I haven't been able to come across an explanation for this.

From fiddling around with the expression I've learned that it's some sort of string copying function.

echo{,} foo
>> echo echo foo
echo foo{,}
>> foo foo

How does this expression work? Is there a name for this? Also, can you provide a practical example for the use of this function?

2 Answers
Related