aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS2
-rw-r--r--Makefile5
-rw-r--r--jim.c1
3 files changed, 7 insertions, 1 deletions
diff --git a/BUGS b/BUGS
index 1941f57..9b3d4d4 100644
--- a/BUGS
+++ b/BUGS
@@ -5,3 +5,5 @@ EXPR: || and && are not lazy. ?: is not implemented. Double math not
jim::libPath variable is accessed in the local context instead than
globally, so the [load] command will fail inside procs.
+
+[subst] ingores special meaning of JIM_BREAK and alike.
diff --git a/Makefile b/Makefile
index 46a2183..8b2d048 100644
--- a/Makefile
+++ b/Makefile
@@ -46,9 +46,12 @@ extensions: posix
clean:
rm -f *.o *.so core .depend .*.swp $(PROGRAMS) gmon.out
-test:
+test: jim
./jim test.tcl
./jim regtest.tcl
+bench: jim
+ ./jim bench.tcl
+
# Dependences
jim.o: jim.c jim.h
diff --git a/jim.c b/jim.c
index 2826100..ffafabe 100644
--- a/jim.c
+++ b/jim.c
@@ -1334,6 +1334,7 @@ static int Jim_Escape(char *dest, char *s, int slen)
case 't': *p++ = 0x9; i++; break;
case 'v': *p++ = 0xb; i++; break;
case '\0': *p++ = '\\'; i++; break;
+ case '\n': *p++ = ' '; i++; break;
default:
if (s[i+1] == 'x') {
int val = 0;