diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-02-24 17:08:03 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-02-24 17:08:03 -0500 |
| commit | 39295176a210df2a1014ac1fe51160ca0a489d5d (patch) | |
| tree | 46d3d9f7190f270f8f2f946bef8cf907dea6a271 | |
| parent | ee2b02d44dae246e7e405852a4e2e726e7c8b08b (diff) | |
Automatic escaping for Path -> Shell
| -rw-r--r-- | environment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 350743cd..a00242c5 100644 --- a/environment.c +++ b/environment.c @@ -479,7 +479,9 @@ env_t *new_compilation_unit(CORD libname) { env_t *ns_env = namespace_env(env, "Shell"); ADD_CONSTRUCTOR(ns_env, "Shell$escape_text", "func(text:Text -> Shell)"); + ADD_CONSTRUCTOR(ns_env, "Shell$escape_text", "func(path:Path -> Shell)"); ADD_CONSTRUCTOR(ns_env, "Shell$escape_text_array", "func(texts:[Text] -> Shell)"); + ADD_CONSTRUCTOR(ns_env, "Shell$escape_text_array", "func(paths:[Path] -> Shell)"); ADD_CONSTRUCTOR(ns_env, "Int$value_as_text", "func(i:Int -> Shell)"); } #undef ADD_CONSTRUCTOR |
