docs: Slight touchup on brace expansion

Clarify the "literal {}" bit and fix formatting.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-04-10 17:29:10 +02:00
parent 04a96f6c6e
commit 8f1b240289

View file

@ -774,7 +774,7 @@ Examples::
mv *.{c,h} src/
# Moves all files with the suffix '.c' or '.h' to the subdirectory src.
A literal "{}" will not be used as a brace expansion::
A literal "{}" will not be used as a brace expansion, but if after expansion there is nothing between the braces, the argument will be removed::
echo foo-{}
# Outputs foo-{}
@ -786,6 +786,7 @@ A literal "{}" will not be used as a brace expansion::
If there is nothing between a brace and a comma or two commas, it's interpreted as an empty element.
So::
echo {,,/usr}/bin
# Output /bin /bin /usr/bin