summaryrefslogtreecommitdiff
path: root/Userland/Shell/Shell.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-01-11 13:04:59 +0330
committerAndreas Kling <kling@serenityos.org>2021-01-15 19:13:03 +0100
commit239472ba699c1e29f8dcb3380529637afeb95f21 (patch)
tree0c4c87c9063d160e130a53707299b14241a0781b /Userland/Shell/Shell.h
parent15fde85b214910e76677f86efaed22a4133ed1f6 (diff)
downloadserenity-239472ba699c1e29f8dcb3380529637afeb95f21.zip
Shell: Add (basic) support for history event designators
Closes #4888
Diffstat (limited to 'Userland/Shell/Shell.h')
-rw-r--r--Userland/Shell/Shell.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Shell/Shell.h b/Userland/Shell/Shell.h
index 7a357ac870..3530d2e003 100644
--- a/Userland/Shell/Shell.h
+++ b/Userland/Shell/Shell.h
@@ -109,6 +109,8 @@ public:
String resolve_path(String) const;
String resolve_alias(const String&) const;
+ static bool has_history_event(StringView);
+
RefPtr<AST::Value> get_argument(size_t);
RefPtr<AST::Value> lookup_local_variable(const String&);
String local_variable_or(const String&, const String&);
@@ -153,6 +155,7 @@ public:
[[nodiscard]] Frame push_frame(String name);
void pop_frame();
+ static String escape_token_for_double_quotes(const String& token);
static String escape_token_for_single_quotes(const String& token);
static String escape_token(const String& token);
static String unescape_token(const String& token);