mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Shell: Expand Juxtaposition of lists to list products
This commit makes `echo x(foo bar)` create an argv of `echo xfoo xbar`, essentially modeling brace expansions in some shells.
This commit is contained in:
parent
16def040af
commit
8e078cf4ab
Notes:
sideshowbarker
2024-07-19 05:09:21 +09:00
Author: https://github.com/alimpfard
Commit: 8e078cf4ab
Pull-request: https://github.com/SerenityOS/serenity/pull/2542
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
5 changed files with 119 additions and 68 deletions
|
@ -120,10 +120,10 @@ redirection :: number? '>'{1,2} ' '* string_composite
|
|||
|
||||
list_expression :: ' '* expression (' '+ list_expression)?
|
||||
|
||||
expression :: evaluate
|
||||
| string_composite
|
||||
| comment
|
||||
| '(' list_expression ')'
|
||||
expression :: evaluate expression?
|
||||
| string_composite expression?
|
||||
| comment expession?
|
||||
| '(' list_expression ')' expression?
|
||||
|
||||
evaluate :: '$' expression {eval / dynamic resolve}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue