1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 20:12:06 +00:00
serenity/Shell
AnotherTest 5640e1bc3a Shell: Add support for brace expansions
This adds support for (basic) brace expansions with the following
syntaxes:
- `{expr?,expr?,expr?,...}` which is directly equivalent to `(expr expr
  expr ...)`, with the missing expressions replaced with an empty string
  literal.
- `{expr..expr}` which is a new range expansion, with two modes:
    - if both expressions are one unicode code point long, the range is
      equivalent to the two code points and all code points between the
      two (numerically).
    - if both expressions are numeric, the range is equivalent to both
      numbers, and all numbers between the two.
    - otherwise, it is equivalent to `(expr expr)`.

Closes #3832.
2020-10-25 10:09:27 +01:00
..
Tests Shell: Fix a FIXME in the a test about using functions 2020-09-26 21:28:35 +02:00
AST.cpp Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
AST.h Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Builtin.cpp Shell: Move everything to the Shell namespace 2020-10-04 23:12:28 +02:00
CMakeLists.txt Shell: Make 'editor' a member of Shell, and provide a LibShell 2020-09-30 20:05:24 +02:00
Execution.h Shell: Move everything to the Shell namespace 2020-10-04 23:12:28 +02:00
Formatter.cpp Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Formatter.h Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Forward.h Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Job.cpp Shell: Move everything to the Shell namespace 2020-10-04 23:12:28 +02:00
Job.h Shell: Move everything to the Shell namespace 2020-10-04 23:12:28 +02:00
main.cpp Style: Remove uses of NULL, substituting nullptr 2020-10-13 13:52:52 +02:00
NodeVisitor.cpp Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
NodeVisitor.h Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Parser.cpp Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Parser.h Shell: Add support for brace expansions 2020-10-25 10:09:27 +01:00
Shell.cpp Everywhere: Add missing <AK/TemporaryChange.h> includes 2020-10-15 23:49:53 +02:00
Shell.h Shell: Move everything to the Shell namespace 2020-10-04 23:12:28 +02:00