From 9bd2fdff16a526524ba41b170af3358221f1fbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E9=9B=AA=E6=9D=BE=20=28Xuesong=20Guo=29?= <peterpan@kongzhong.com> Date: Wed, 3 Jun 2009 17:28:20 +0800 Subject: [PATCH] =?UTF-8?q?Process.search=5Fpath()=20is=20now=20Win32=20an?= =?UTF-8?q?d=20AmigaOS=20aware.=20Thanks=20to=20=E9=83=AD=E9=9B=AA?= =?UTF-8?q?=E6=9D=BE=20<peterpan@wukong.com>.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rev: lib/modules/Process.pmod:1.61 --- lib/modules/Process.pmod | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/modules/Process.pmod b/lib/modules/Process.pmod index c794b6f266..e87193b92b 100644 --- a/lib/modules/Process.pmod +++ b/lib/modules/Process.pmod @@ -291,7 +291,13 @@ string search_path(string command) if (!search_path_entries) { +#ifdef __NT__ + array(string) e=replace(getenv("PATH")||"", "\\", "/")/";"-({""}); +#elif defined(__amigaos__) + array(string) e=(getenv("PATH")||"")/";"-({""}); +#else array(string) e=(getenv("PATH")||"")/":"-({""}); +#endif multiset(string) filter=(<>); search_path_entries=({}); -- GitLab