mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
docs: Slight touchup on brace expansion
Clarify the "literal {}" bit and fix formatting. [ci skip]
This commit is contained in:
parent
04a96f6c6e
commit
8f1b240289
1 changed files with 2 additions and 1 deletions
|
@ -774,7 +774,7 @@ Examples::
|
||||||
mv *.{c,h} src/
|
mv *.{c,h} src/
|
||||||
# Moves all files with the suffix '.c' or '.h' to the subdirectory 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-{}
|
echo foo-{}
|
||||||
# Outputs 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.
|
If there is nothing between a brace and a comma or two commas, it's interpreted as an empty element.
|
||||||
|
|
||||||
So::
|
So::
|
||||||
|
|
||||||
echo {,,/usr}/bin
|
echo {,,/usr}/bin
|
||||||
# Output /bin /bin /usr/bin
|
# Output /bin /bin /usr/bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue