aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-23 14:36:20 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-23 14:36:20 -0400
commitb432fc82c78bb890eca5938c7754950f089c7abe (patch)
tree44731b975c600ce33e87482de7e0337211efab98 /environment.c
parent62745cda958116788164a245849e0b45622cc057 (diff)
Add shell escaping for arrays of text
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index 33b30c69..96c68c59 100644
--- a/environment.c
+++ b/environment.c
@@ -304,6 +304,7 @@ env_t *new_compilation_unit(CORD *libname)
{"by_line", "Shell$by_line", "func(command:Shell)->(func()->Text?)?"},
{"escape_int", "Int$value_as_text", "func(i:Int)->Shell"},
{"escape_text", "Shell$escape_text", "func(text:Text)->Shell"},
+ {"escape_text_array", "Shell$escape_text_array", "func(texts:[Text])->Shell"},
{"run_bytes", "Shell$run", "func(command:Shell)->[Byte]?"},
{"run", "Shell$run", "func(command:Shell)->Text?"},
)},