From 6e7f843663477789fac7c02def0d0909e969b4e5 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Thu, 28 May 2015 07:23:15 -0700 Subject: [PATCH] osext: state in readme that args[0] doesn't always work. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 820e1ec..61350ba 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ There is sometimes utility in finding the current executable file that is running. This can be used for upgrading the current executable -or finding resources located relative to the executable file. +or finding resources located relative to the executable file. Both +working directory and the os.Args[0] value are arbitrary and cannot +be relied on; os.Args[0] can be "faked". Multi-platform and supports: * Linux