aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-09 02:43:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-09 02:43:15 -0400
commita306f945571c8027badd2ca673304991f628900c (patch)
tree328f8c57bec5e0b71d7c589213badb3b4d03b39c /compile.c
parent1fbe2cb5dd1aa4b20411ee0c3b00310677373a55 (diff)
Add mktemp functionality
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 9fd8dd59..c3b6325a 100644
--- a/compile.c
+++ b/compile.c
@@ -1856,6 +1856,9 @@ CORD compile(env_t *env, ast_t *ast)
case BINOP_CONCAT: {
switch (operand_t->tag) {
case TextType: {
+ const char *lang = Match(operand_t, TextType)->lang;
+ if (streq(lang, "Path"))
+ return CORD_all("Path$concat(", lhs, ", ", rhs, ")");
return CORD_all("Text$concat(", lhs, ", ", rhs, ")");
}
case ArrayType: {