ref: 45c44551552c6628a537c015c94812012ba6875d
parent: 46187f1c98fd67a081ccf0d638807f0624234da9
author: grobe0ba <grobe0ba@tcp80.org>
date: Thu Jun 20 11:12:14 CDT 2024
getenv("path") on 9 (thanks phil9!)
--- a/zuo.c
+++ b/zuo.c
@@ -7104,7 +7104,11 @@
return zuo_string_to_c(zuo_path_to_complete_path(zuo_string(exec_file)));
} else {
/* We have to find the executable by searching PATH: */
+#if defined(_PLAN9_SOURCE)
+ char *path = strdup(getenv("path")), *p;
+#else
char *path = strdup(getenv("PATH")), *p;
+#endif
zuo_t *m;
int more;