mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Shell: Add support for $0,$1,...
This commit is contained in:
parent
2f97590409
commit
0b57cdff82
3 changed files with 33 additions and 0 deletions
|
@ -92,6 +92,7 @@ public:
|
|||
String resolve_path(String) const;
|
||||
String resolve_alias(const String&) const;
|
||||
|
||||
RefPtr<AST::Value> get_argument(size_t);
|
||||
RefPtr<AST::Value> lookup_local_variable(const String&);
|
||||
String local_variable_or(const String&, const String&);
|
||||
void set_local_variable(const String&, RefPtr<AST::Value>);
|
||||
|
@ -170,6 +171,8 @@ public:
|
|||
HashMap<u64, NonnullRefPtr<Job>> jobs;
|
||||
Vector<String, 256> cached_path;
|
||||
|
||||
String current_script;
|
||||
|
||||
enum ShellEventType {
|
||||
ReadLine,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue