summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-26 21:30:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-26 21:39:26 -0700
commitd369e7c7a36adbcbd886927825a20ab6fc11782b (patch)
tree1f4f8a9f7a59a6ebd851588d8bb8ff0741a7e716
parent3e8ffce49faa414d970d43ec7396ebad82a32add (diff)
downloadtxr-d369e7c7a36adbcbd886927825a20ab6fc11782b.tar.gz
txr-d369e7c7a36adbcbd886927825a20ab6fc11782b.tar.bz2
txr-d369e7c7a36adbcbd886927825a20ab6fc11782b.zip
Separator expression in @(cat) evaluated as Lisp.
* match.c (v_cat): Use tleval_144 instead of txeval.
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index af3a0843..8470f29c 100644
--- a/match.c
+++ b/match.c
@@ -3284,7 +3284,7 @@ static val v_cat(match_files_ctx *c)
} else {
val existing = tx_lookup_var(sym, c->bindings);
if (existing) {
- val sep = if3(sep_form, txeval(specline, sep_form, c->bindings),
+ val sep = if3(sep_form, tleval_144(specline, sep_form, c->bindings),
lit(" "));
set(cdr_l(existing), cat_str(flatten(cdr(existing)), sep));
} else {