shithub: 9ferno

Download patch

ref: 1738507758d8972877d9ca3dda5431e0e229007a
parent: 993e7fa4d1dbea75626ba7691cabc4090880038e
author: henesy <unknown>
date: Thu Jun 3 04: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); 
 }