code: purgatorio

Download patch

ref: 254b07675e1a5348f2a8723f55e6b5b1b18a4721
parent: db1eb844461b07a25ca49117851fa874fd88e065
author: henesy <devnull@localhost>
date: Wed Jun 2 21:34:19 EDT 2021

qtokenize(2): fix list order

--- a/appl/lib/string.b
+++ b/appl/lib/string.b
@@ -602,7 +602,7 @@
 		' ' or '\t' or '\n' =>
 			if(word == nil)
 				continue;
-			out = word :: out;
+			out = append(word, out);
 			word = nil;
 
 		* =>
@@ -613,7 +613,7 @@
 		return (nil, "missing quote");
 
 	if(word != nil)
-		out = word :: out;
+		out = append(word, out);
 
 	return (out, nil); 
 }