aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-01-07 22:22:46 +0100
committerDrahflow <drahflow@gmx.de>2015-01-07 22:22:46 +0100
commitb84800e369887115aaba407630375f94b2be0908 (patch)
treec65066a7e4e108545b5cb5f2d796c3cc33736e7d
parent354aacc3b66e0dabd6904a8aee350a6aa24b54f3 (diff)
Correctly handle last line without newline
-rw-r--r--compiler/standardClient.ey8
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey
index c842b84..6df429c 100644
--- a/compiler/standardClient.ey
+++ b/compiler/standardClient.ey
@@ -453,8 +453,8 @@
} /writeall deff
{ =*f "" ==buffer
{
- buffer 4096 read cat =buffer
- buffer "" eq not
+ buffer 4096 read -010 cat =buffer
+ "" eq not
} {
buffer "\n" str .split ==lines
0 lines len 1 sub range {
@@ -462,6 +462,10 @@
} each
lines len 1 sub lines * =buffer
} loop
+
+ buffer "" eq not {
+ buffer "\n" str .split |f each
+ } rep
} /eachLine deff
> > -- } /makefile deff