fish-shell/sphinx_doc_src
Fabian Homborg 967c1d51ee Only do brace expansion if they contain a variable or ","
Brace expansion with single words in it is quite useless - `HEAD@{0}`
expanding to `HEAD@0` breaks git.

So we complicate the rule slightly - if there is no variable expansion
or "," inside of braces, they are just treated as literal braces.

Note that this is technically backwards-incompatible, because

    echo foo{0}

will now print `foo{0}` instead of `foo0`. However that's a
technicality because the braces were literally useless in that case.

Our tests needed to be adjusted, but that's because they are meant to
exercise this in weird ways.

I don't believe this will break any code in practice.

Fixes #5869.
2019-05-19 18:23:27 +02:00
..
_static docs: Remove underline for whitespace 2019-04-09 13:57:36 +02:00
cmds docs/status: Fix synopsis 2019-05-14 19:26:52 +02:00
commands.rst docs: Remove explicit .html links 2019-04-30 13:11:33 +02:00
conf.py Reformat all files 2019-05-05 12:09:25 +02:00
design.rst docs: Remove explicit .html links 2019-04-30 13:11:33 +02:00
faq.rst docs: Fix reference to FAQ 2019-04-06 23:23:48 +02:00
fish_indent_lexer.py Reformat all files 2019-05-05 12:09:25 +02:00
index.rst Only do brace expansion if they contain a variable or "," 2019-05-19 18:23:27 +02:00
license.rst docs/license: Fix "anonymous hyperlink" warning 2019-03-29 21:13:10 +01:00
tutorial.rst docs: Call "arrays" "lists" 2019-05-05 14:01:07 +02:00