In what commit/verison were braces allowed? Thank You! #10333
-
I accidentally discovered this by accident today. This was not possible in the past. mkdir -p ~/Downloads/testfish/{one,two/three} Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
faho
Feb 29, 2024
Replies: 1 comment 5 replies
-
Brace expansion has basically always been in fish. This has nothing to do with 6415, which is about command grouping. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fish uses
begin
andend
for command grouping, not braces:That is also what the error message tells you.
This is on purpose because it means that the
{}
symbols are less overloaded. Fish does not try to be bash-compatible and it doesn't shoot for code golf. It is fine if something is a word instead of a symbol, especially when that symbol is already used for something else.