FAQ
On 2012/10/28 17:47:49, r wrote:
https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable.go#newcode7
src/pkg/os/executable.go:7: // Executable returns the absolute
pathname of the
current
"the absolute pathname" sounds definitive but is actually not
well-defined.
i agree it is difficult to define its precise behavior.
however, i think the following description is reasonable:
the return value of Executable is an absolute path that matches the path
used
to launch the executable (assuming no one is modifying the intermediate
paths).

https://codereview.appspot.com/6736069/diff/43014/src/pkg/os/executable_darwin.go#newcode7
src/pkg/os/executable_darwin.go:7: var progPath string // set by
../runtime/progpath_darwin.c
you've still got some progpaths around, in different casings.
All fixed.

https://codereview.appspot.com/6736069/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 31 of 58 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 23, '12 at 7:04p
activeNov 6, '12 at 7:35p
posts58
users10
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase