|
From: | Paul Eggert |
Subject: | Re: Finding the dump |
Date: | Sun, 27 Jan 2019 17:21:30 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Daniel Colascione wrote:
we_already_ do the moral equivalent of realpath(argv[0]), in init_cmdargs, which sets invocation-directory and from there various internal paths, including installation-directory.
Emacs can run without any of that stuff, so people can run Emacs 26 with argv[0] being any string they like. That will stop working if Emacs can't run when argv[0] is "wrong".
The GNU Coding Standards have long said that a program's behavior shouldn't depend its name (i.e., on the contents of argv[0]), and there are advantages to sticking to standard practices even if some programs depart from them.
[Prev in Thread] | Current Thread | [Next in Thread] |