mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 01:14:58 +00:00
Shell: Add support for ARGV (and $*, $#)
This patchset also adds the 'shift' builtin, as well as the usual tests. closes #2948.
This commit is contained in:
parent
192b2383ac
commit
12af65c1c9
8 changed files with 79 additions and 1 deletions
|
@ -772,6 +772,8 @@ RefPtr<AST::Node> Parser::parse_variable()
|
|||
switch (peek()) {
|
||||
case '$':
|
||||
case '?':
|
||||
case '*':
|
||||
case '#':
|
||||
return create<AST::SpecialVariable>(consume()); // Variable Special
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue