summaryrefslogtreecommitdiff
path: root/src/shell_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-08-27 21:52:57 +1000
committerMaxime Coste <mawww@kakoune.org>2018-08-29 07:53:59 +1000
commit68aba9e353961ccae17183ccdc65c3c89bdcd6c6 (patch)
treed8930ba60ce8a3da06d31e7e1b9ea687f08ca866 /src/shell_manager.hh
parent373858f9bfb50fe2c5670beffbfe63654cc12314 (diff)
Use shell specific quoting for env vars
Add a test case to validate roundtrips between Kakoune and the shell.
Diffstat (limited to 'src/shell_manager.hh')
-rw-r--r--src/shell_manager.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh
index f97935d1..ebfe3cca 100644
--- a/src/shell_manager.hh
+++ b/src/shell_manager.hh
@@ -18,10 +18,11 @@ struct ShellContext
EnvVarMap env_vars;
};
+enum class Quoting;
struct EnvVarDesc
{
- using Retriever = String (*)(StringView name, const Context&);
+ using Retriever = String (*)(StringView name, const Context&, Quoting quoting);
StringView str;
bool prefix;
@@ -45,7 +46,7 @@ public:
Flags flags = Flags::WaitForStdout,
const ShellContext& shell_context = {});
- String get_val(StringView name, const Context& context) const;
+ String get_val(StringView name, const Context& context, Quoting quoting) const;
CandidateList complete_env_var(StringView prefix, ByteCount cursor_pos) const;